Hi How can I retrieve a list of user's group id

 Hi,

I want list of all user group id. I have added code here where i am trying to achieve this .

 

But i am not getting proper solution for that.

 

Kindly guide me on that.

 

load(
  local!a,
  local!usersInGroup: rule!RAS_getAllUsersByGroup(
    "RAS Portal Users"
  ),
  local!group: a!forEach(
    items: local!usersInGroup,
    expression: 
     getgroupsformemberuser(
        fv!item
    )
  ),
  = a!formLayout(
    label: "Customers for Review",
    instructions: "Review the profiles for the customers below and contact as needed",
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!textField(
                label: "Customer",
                value: local!usersInGroup,
                readOnly: true
              ),
              a!textField(
                label: "Customer",
                value: getgroupsformemberuser(
                  "RATEST1"
                ),
                readOnly: true
              ),
              a!textField(
                label: "Customer",
                value: getgroupnames(
                  getgroupsformemberuser(
                    loggedInUser()
                  )
                ),
                readOnly: true
              ),
               a!textField(
                label: "Customer",
                value: local!group,
                readOnly: true
              )
            }
          )
        }
      )
    }
  )
)

 

In this i am getting list of Group Id but all are appended with "Group". How i will get only integer part of that

  Discussion posts and replies are publicly visible

Parents Reply Children