runtimetypeof() Function

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.

Syntax

runtimetypeof( value )

value (Any type) The value to be inquired for type.

Returns

Integer

Examples

You can experiment with this function in the test box below.

Test Input

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

FEEDBACK