I have created this rule to get the group names from my task report in a grid . but when there are multiple groups are present at assignee column, it gives error saying invalid group exception.
Here is the code:
if( or( runtimetypeof( ri!groupOrUser ) = tointeger( 'type!{http://www.appian.com/ae/types/2009}Group' ), like( ri!groupOrUser, "?Group:*" ) ), touser(group( togroup( touniformstring( ri!groupOrUser ) ), "groupName" )), rule!APN_displayUser( touser( ri!groupOrUser ) ) )
Rule input-user or group
Any suggestions?
Discussion posts and replies are publicly visible
Thanks Mike.. I just check the decimation for task assignee and formatting - nothing was specified. I changed it to user or group name . But in my interface it’s still giving group ids
Other than that the definition is the same? I.E. it's directly referencing the task_assignee_owner() rule with no other alteration?
if( and( pm!name <> "MT Report ", pm!name <> "ReviewUpdateTask" ), touser( if( isnull(task_assignee_owner()), "test", task_assignee_owner() ) ), joinarray( if( isnull(task_assignee_owner()), "test", task_assignee_owner() ) ) )
Here is the code for defination
Oh - there's your problem, then. joinarray() flattens an array into a single string.
As my previous screenshot showed - the column's definition will need to be changed back to, exactly, "=task_assignee_owner()".
Thanks Mike. It worked Finally
Great, thanks for confirming. As always, it'd be appreciated (if you see the option to) if you'd click "verify" on any answer(s) you found helpful