Returns the numerical representation of an Appian system data type when used during process execution. It performs in the same manner as the typeof()
function except for union types such as User
or Group
where it returns either the User
or Group
type number in non-null cases.
runtimetypeof( value )
value (Any type) The value to be inquired for type.
Integer
typename(runtimetypeof(topeople(123)))
returns Group
if(runtimetypeof(topeople(loggedInUser())) = type!User, "You're a User", "You're a Group")
returns You're a User