Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
8 subscribers
Views
2408 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I want to get users list which are present in Custom Group Type. I am using belo
vineeta6579
over 10 years ago
I want to get users list which are present in Custom Group Type. I am using below sail code to get users.
This code works fine for some Custom group names but for others it shows invalid group exception but group name is available in System.
Expression:-
=getdistinctusers(togroup(ri!groupname))
Any idea why its happening!!!
OriginalPostID-140620
OriginalPostID-140620
Discussion posts and replies are publicly visible
0
Robert Shankin
Appian Employee
over 10 years ago
Hi Vineet-
Try the following:
=getdistinctusers(topeople(ri!groupname))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
praveenj
over 10 years ago
togroup() takes group id and not group name. If you have to use group name then use this..
=getdistinctusers(getgroupbyname(ri!groupname))
Hope this helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vinitl522
A Score Level 2
over 10 years ago
Hello Ahluwalia, You can use below expression:fn!getdistinctusers(fn!topeople(tointeger(ri!group)))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel