internalize( externalizedText, default )
Converts the given externalized string representation of a value to the original value.
See also: externalize()
Keyword | Type | Description |
---|---|---|
|
Text |
Externalized representation of a value. |
|
Any Type |
Value to return if the text cannot be internalized or an error occurs. |
Text
This function cannot be used with record data. If you use a!toJson() to create a text representation of record data, that JSON can then be cast to a record data type with a!fromJson().
This example shows how to cast a JSON string to the Address record type. When casting JSON data to a record type, Appian automatically matches the keys to the record type's fields. Any non-matching key names are ignored.
1
2
3
4
5
6
7
cast(
recordType!Address,
a!fromJson(
"{""addressId"":301,""addressLine"":""7950 Jones Branch Dr"",
""city"":""McLean"",""stateProvinceId"":75,""postalCode"":""22102""}"
)
)
internalize(externalize(!pv2))
returns user3
where !pv2
is User Mike Smith whose username is user3
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Incompatible | |
Real-Time Custom Record Fields | Incompatible | |
Process Reports | Compatible | |
Process Events | Compatible |
internalize() Function