FunctionCopy link to clipboard
typename( typeNumber )
Returns the type name of a given type number.
See also: typeof(), Delete Data Types
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Number (Integer) |
The type number to be inquired for its name. This may be retrieved by using typeof(x), where x is a value of the intended type, or referencing a type with 'type!{namespace}type-name' (within single quotes). |
ReturnsCopy link to clipboard
Text
Usage considerationsCopy link to clipboard
Referencing data typesCopy link to clipboard
- To retrieve the type number, use
typeof(x)
, wherex
is a value of the intended type, or reference a type withtype!{namespace}type-name
(within single quotes). - When referencing a data type, consider the impact that deleting the data type has on the expression that references it.
ExamplesCopy link to clipboard
Returning data type nameCopy link to clipboard
1
typename(27)
Copy
Returns User or Group
.
1
typename(type!Integer)
Copy
Returns Number (Integer)
.
Returning multiple data type namesCopy link to clipboard
1
typename(type!Integer, type!Decimal, type!User)
Copy
Returns {"Number (Integer)", "Number (Decimal)", "User"}
. Multiple input values are supported.
1
typename({type!Integer, type!Decimal, type!User})
Copy
Returns {"Number (Integer)", "Number (Decimal)", "User"}
. A list of inputs is supported.
1
2
3
4
5
6
7
8
9
10
typename(
typeof(
"abc",
0.5,
47,
date(1985, 12, 10),
a!map(first: 1, second: 2),
{order: 1906, units: 46}
)
)
Copy
Returns { "Text", "Number (Decimal)", "Number (Integer)", "Date", "Map", "Dictionary" }
. typeof
returns a list of type numbers, which is evaluated and returned as a list of type names.
Returning list type names for listsCopy link to clipboard
1
typename(typeof({ 1, 2, {}, 17 }))
Copy
Returns List of Number (Integer)
.
1
typename(typeof({ 1, 2, {}, 17 }), typeof({ 1.0, 2.2, 17.0 }))
Copy
Returns { List of Number (Integer), List of Number (Floating Point) }
.
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
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 | |
Process Autoscaling | Compatible |