runtimetypeof( value )
Returns the numerical representation of an Appian system data type when used during process execution.
Keyword | Type | Description |
---|---|---|
|
Any Type |
The value to be inquired for type. For example, typename(runtimetypeof(topeople(123))) might return "Group". |
Integer
1
typename(runtimetypeof(topeople(123)))
Returns Group
.
1
2
3
4
5
if(
runtimetypeof(topeople(loggedInUser())) = type!User,
"You're a User",
"You're a Group"
)
Returns "You're a User"
.
When using a rule input of a type that can contain a more specific type, runtimetypeof
can be used to determine the type when an actual value is passed into the rule input (at runtime).
For a rule input called userOrGroup
of type User or Group
with value loggedinuser()
:
1
typename(typeof(ri!userOrGroup))
Returns User or Group
.
1
typename(runtimetypeof(ri!userOrGroup))
Returns User
.
This works similarly for rule inputs of type Document or Folder
.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
runtimetypeof() Function