Name: ----- getFormattedUserOrGroupName Inputs: ------- 1. userOrGroup (Any Type) Definition: ----------- if( rule!APN_isEmpty( ri!userOrGroup ), null, with( /*Get user objects from input*/ local!arrayOfUser: touser( ri!userOrGroup ), /*Get group objects from input*/ local!arrayOfGroup: tointeger( ri!userOrGroup ), /*Format the user objects*/ local!arrayOfFormattedUserName: if( rule!APN_isEmpty( local!arrayOfUser ), null, apply( rule!APN_displayUser( user: _ ), local!arrayOfUser ) ), /*Format the group objects*/ local!arrayOfFormattedGroupName: if( rule!APN_isEmpty( local!arrayOfGroup ), null, apply( fn!group( groupId: _, property: "groupName" ), local!arrayOfGroup ) ), /*Combine formatted user and group names*/ local!arrayOfFormattedUserGroupName: append( local!arrayOfFormattedUserName, local!arrayOfFormattedGroupName ), /*Drop null values*/ local!arrayOfNonNullFormattedUserGroupName: reject( rule!APN_isBlank( _ ), local!arrayOfFormattedUserGroupName ), if( rule!APN_isEmpty( local!arrayOfFormattedUserGroupName ), null, joinarray( local!arrayOfFormattedUserGroupName, ", " ) ) ) ) Rule call: ---------- apply( rule!getFormattedUserOrGroupName(userOrGroup:_), )