FunctionCopy link to clipboard
a!customFieldConcat( value )
Used to create a real-time custom record field, this function concatenates the specified values into a single value.
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Any Type |
An array of 2 to 10 values to concatenate. Values can be any combination of record fields, related record fields, custom field functions, or literal values of type Text, Number (Integer), User, or Group. |
Usage considerationsCopy link to clipboard
Where to use this functionCopy link to clipboard
The a!customFieldConcat()
function can only be used to create a custom record field that evaluates in real time. This means you can reference related record fields, constants, and other supported functions in your calculations.
To create a custom record field that evaluates in real-time:
- In your record type, go to Data Model.
- Click NEW CUSTOM RECORD FIELD.
- From SELECT A TEMPLATE, choose Write Your Own Expression.
- Choose Real-time evaluation.
- Click NEXT.
-
Enter an expression using any Custom Field function.
Note: Custom record fields that evaluate in real-time must use at least one Custom Field function.
- Click NEXT.
- Enter a Name for your custom record field.
- Click CREATE.
- Click SAVE CHANGES. The new custom record field appears in your list of fields.
Concatenating long text fieldsCopy link to clipboard
The a!customFieldConcat()
function should not be used to concatenate long text fields (fields with thousands of characters). These field values will be difficult for users to read, and can potentially result in an error when creating the field or referencing it in your applications.
If you need to concatenate long text fields, Appian recommends doing so directly in the interface or query instead of creating a concatenated custom record field.
ExampleCopy link to clipboard
Let's say you have a Case record type and you want to create a custom record field that displays each case's status and priority as a single field value. For example, a field value could be "Open - Critical" or "In Progress - Low". The case status and priority are stored in two separate record types: the Status record type and the Priority record type.
To create this field, you can create a new custom record field that evaluates in real time and use the a!customFieldConcat()
function to concatenate the two values:
1
2
3
4
5
6
7
a!customFieldConcat(
{
recordType!Case.relationships.status.fields.label,
"-",
recordType!Case.relationships.priority.fields.label
}
)
Copy
Returns values like:
1
2
3
4
5
6
Open - Low
Open - Medium
Open - Critical
In Progress - Low
In Progress - Medium
...
Copy
See the Real-time evaluation recipes for more examples using this function.
Supported functionsCopy link to clipboard
You can use any of the following supported functions in the value parameter of a!customFieldConcat()
:
Note: When you use a supported function in a Custom Field function, you can only pass static values or constants containing static values into the supported function; you cannot pass record field references.
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
Feature | Compatibility | Note |
---|---|---|
Portals | Partially compatible | Can be used with Appian Portals if it is connected using an integration and web API. |
Offline Mobile | Incompatible | |
Sync-Time Custom Record Fields | Incompatible | |
Real-Time Custom Record Fields | Compatible | Can only be used to create a custom record field that evaluates in real time. It cannot be used anywhere else in your application. |
Process Reports | Incompatible | Cannot be used to configure a process report. |
Process Events | Incompatible | Cannot be used to configure a process event node, such as a start event or timer event. |