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
= if( runtimetypeof( ri!userOrGroup ) = tointeger( 'type!{http://www.appian.com/ae/types/2009}Group' ), if( doesgroupexist( togroup( ri!userOrGroup ) ), group( togroup( ri!userOrGroup ), "groupName" ), "N/A" ), user(touser(ri!userOrGroup), "firstName") & " " & user(touser(ri!userOrGroup), "lastName"), )
https://community.appian.com/b/appmarket/posts/people-functions---plug-inhttps://docs.appian.com/suite/help/21.2/fnc_people_isusernametaken.html