Free cookie consent management tool by TermsFeed

internalize() Function

Function

internalize( externalizedText, default )

Converts the given externalized string representation of a value to the original value.

See also: externalize()

Parameters

Keyword Type Description

externalizedText

Text

Externalized representation of a value.

default

Any Type

Value to return if the text cannot be internalized or an error occurs.

Returns

Text

Usage considerations

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""}"
  )
)

Examples

internalize(externalize(!pv2)) returns user3 where !pv2 is User Mike Smith whose username is user3

Feature compatibility

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 Incompatible
Real-Time Custom Record Fields Incompatible
Process Reports Compatible
Process Events Compatible

Feedback