Hi Everyone,
I have one constant say CONSTANTFFORGRUPOS,which contains 20 groups .
i need to fetch details based on my group member say ri!groupmember .
guys can you help me with expression rule
Thanks
Discussion posts and replies are publicly visible
Can you talk us through what you're thinking of in perhaps a bit more detail? I'm unsure what to make of, "fetch details based on my group member" -- i assume ri!groupMember might be a user or username, but then how are you wanting that to relate to the constant with a list of groups? What details are you after exactly?
Hi Mike thanks for reply !
I have one Constant named group CONSTANTFFORGRUPOS which have 20 Group list such as TML Admin , TMK PM , ........20
my requirement is that i have user name Ex " TOM" i dont know which group he belongs .....
I need to get the groups Name where the TOM is present
Basically expression rule need to create the pass the value through rule input .
If you have the People Functions plug-in, you can just use the function getGroupsForMemberUser() to get the groups that the user belongs to.
I know that function can you help me with expression rule
What do you have so far? I'm still pretty unclear on what you're trying to do that isn't doable pretty much just by using the rule I named in my prior comment.
hello Ronie,
you can try below code to get the required output
with( local!username:loggedinuser(),/*"or name of the person for which you want to find out like "tom" in your case" */ local!findGroup:getGroupsForMemberUser(local!username), local!findgroup )