Hi,
I have a process where I know the name of the group that I want to assign the task to. I need to get the members of the group and store it in a pv of type user (multiple).
Can anyone recommend a good way to do that?
Thanks.
Discussion posts and replies are publicly visible
@gary - You need to retrieve the group Id first, for which I have already mentioned the function getgroupbyname(). This also comes from the same Shared Component.
The expression - tointeger("IESO Adequacy Administrator") - is returning null (Please refer to the attachment) because the function tointeger() cannot parse the string that you have passed as group and so the main function getdirectgroupmemberuserspaging() is throwing a Null Pointer Exception. Hope this is clear.
You need to write something like this:
getdirectgroupmemberuserspaging(getgroupbyname("IESO Adequacy Administrator"),1,20)
or
getdirectgroupmemberuserspaging(tointeger(getgroupbyname("IESO Adequacy Administrator")),1,20).
Give it a try and let me know if this doesn't work for you.