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
4 replies
Subscribers
8 subscribers
Views
2112 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
apply(fn!group,{getgroupsoftypeforuser(ri!searchUserName,"GroupType"),
dharsanag
over 10 years ago
apply(fn!group,{getgroupsoftypeforuser(ri!searchUserName,"GroupType"),"groupName"})
Where
searchUserName is of type user
Second Parameter is a grouptype
I am getting below error
Expression evaluation error at function 'apply': Invalid function group
Requirement is This rule should retrieve the list of group of the particular grouptype where the user(ri!searchUserName) belongs to...
OriginalPostID-135409
OriginalPostID-135409
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 10 years ago
There are some errors in your syntax but I don't know if it's an exact copy and paste? This works for me:
apply(
fn!group,
getgroupsoftypeforuser(
ri!searchUserName,
"Custom"
},
"groupName"
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 10 years ago
*replace the } with )
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Poorna Guduri
A Score Level 1
over 10 years ago
Hi Darshan, try the following code:
apply(fn!group(_,"groupName"),{getgroupsoftypeforuser(ri!user,"GroupType")}).
Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
dharsanag
over 10 years ago
Thanks tim and poornah
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel