Free cookie consent management tool by TermsFeed

a!customFieldConcat() Function

Function

a!customFieldConcat( value )

Used to create a real-time custom record field, this function concatenates the specified values into a single value.

Parameters

Keyword Type Description

value

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 considerations

Where to use this function

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:

  1. In your record type, go to Data Model.
  2. Click NEW CUSTOM RECORD FIELD.
  3. From SELECT A TEMPLATE, choose Write Your Own Expression.
  4. Choose Real-time evaluation.
  5. Click NEXT.
  6. 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.

  7. Click NEXT.
  8. Enter a Name for your custom record field.
  9. Click CREATE.
  10. Click SAVE CHANGES. The new custom record field appears in your list of fields.

Concatenating long text fields

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.

Example

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 functions

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 compatibility

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.

Feedback