Use Case:- We have created three custom group which are present in one group ty

Use Case:- We have created three custom group which are present in one group type. I need to get list of all users present in my group type. I am able to get list of users but when I am trying to get attributes of users it throws below error.

"Invalid function user"

Please find attached report code..

Sail Report

OriginalPostID-143057

OriginalPostID-143057

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    I would get the overall userlist doing this:

    local!allUsers: reduce(fn!append,touser({}),apply(fn!GetUserList,local!getGroupIdfromGroupType))

    local!getUniqueUsers: union(local!allUsers,local!allUsers)

    My guess is that your parsing is causing some extra text or characters to get into the username strings. The above method removes the need to do the parsing.
Reply
  • 0
    Certified Lead Developer
    I would get the overall userlist doing this:

    local!allUsers: reduce(fn!append,touser({}),apply(fn!GetUserList,local!getGroupIdfromGroupType))

    local!getUniqueUsers: union(local!allUsers,local!allUsers)

    My guess is that your parsing is causing some extra text or characters to get into the username strings. The above method removes the need to do the parsing.
Children
No Data