cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

How to use fn-IsMemberOfGroup

Jump to solution

Hello,

I want to show / hide some controls based on the membership of the current user. the group i need to check is different per item, i need to check it based on a property (CountryName).

When i put the fn-ismemberOfGroup function in the expression as fn-IsMemberOfGroup("Norway"), it works fine. when i use the following expression the item property is never used, fn-IsMemberOfGroup("CountryName") however when i user a Common property it works fine.

Further i tried to use the fn-IsMemberOfGroup("CountryName") using a rule but that didn't work out either. Is it possible to use this function with a rule or expression at run time and put in a dynamic group name?

Labels: (1)
Reply
9 Replies
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

Hi!

Try to remove quotes surrounding the "CountryName", so just: fn-isMemberOfGroup(CountryName)

Regards,

Tomasz

Regards, Tomasz Poszytek
0 Kudos
Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

Unfortunately that makes no difference. with or without quotes it is not working.

Regards,

Sander

0 Kudos
Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

I confirm : if you set the GroupName manually, the function works well...if you retrieve it from Item Properties : doesn't work.

Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

The function fn-isMemberOfGroup works with named/hardcoded groups. It doesn't work with names that comes from a variable

Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

Hi ‌ if any from the above answers helped you with solving your issue, please mark one of them as "Correct", so that other users will be able to use it as a solution if they face a similar problem.

Regards,

Tomasz

Regards, Tomasz Poszytek
Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

When i use the common variable instead of a named/hardcoded groupname it works fine.

Do you know if it is on the planning to support the named controls or item properties?

Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

What kind of column is "CountryName" in your list ? For me, it works with free text, on an on premise tenant.

0 Kudos
Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

The problem was not the column, the expression did not work on a multi line rich text box. So the function works fine but not on that specific control.

0 Kudos
Reply
Workflow Hero

Re: How to use fn-IsMemberOfGroup

Jump to solution

i added a new reply with the solution, it was not the item property but the control on the form that caused the problems..

0 Kudos
Reply