if( rule!APN_IsBlank(ri!userOrGroup), "", if( runtimetypeof(topeople(ri!userOrGroup)) = 'type!{http://www.appian.com/ae/types/2009}User', user(touser(ri!userOrGroup), "firstName") & " " & user(touser(ri!userOrGroup), "lastName"), if( runtimetypeof(topeople(ri!userOrGroup)) = 'type!{http://www.appian.com/ae/types/2009}Group', group(togroup(ri!userOrGroup), "groupName"), "" ) ) )
Hello All,
Please find the above code ( rule it is to get user or group name )
when you enter a user name it's showing it is user and when you Test with a group name it's giving me an error
Please look at the code is there any mistake
Thanks in advance
Discussion posts and replies are publicly visible
Hi,
Can you share the error that you are getting? Also, assuming you are using user or group type rule input.
If you do not know the type then you can make use of username taken and group existing function to just ensure valid input data.