FunctionCopy link to clipboard
a!automationId( automationTypes )
Returns the automation identifier for the automation type provided. Use this function to write the automation identifier for record events.
See also: a!automationType()
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
List of Text |
The text or list of text to convert to an automation identifier. Valid values include: |
ReturnsCopy link to clipboard
List of Number (Integer)
Usage considerationsCopy link to clipboard
Use a!automationId()
to write the automation identifier for the type of automation that completed an event in a Write Records node.
If you use the guided experience in the Setup tab and choose an automation type from a dropdown, Appian will automatically write the identifier for the selected automation type.
If you use an expression to specify the automation type, write the automation identifier for the automation type you want to specify. You cannot write the automation type directly, like RPA or AI.
The following table lists the each automation type and its corresponding identifier:
Automation Type | Identifier |
---|---|
"NONE" |
1 |
"RPA" |
2 |
"AI" |
3 |
"INTEGRATION" |
4 |
"OTHER" |
5 |
ExamplesCopy link to clipboard
Retrieving an event automation type identifierCopy link to clipboard
1
a!automationId("RPA")
Copy
Returns {2}
.
Conditionally writing an automation typeCopy link to clipboard
1
if(pv!isError, a!automationId("NONE"), a!automationId("RPA"))
Copy
Returns {1}
if RPA failed to complete the event and a user completed the event instead. Otherwise, returns {2}
. In this example, pv!isError
is a process variable that tracks whether RPA successfully completed a task.
Feature compatibilityCopy link to clipboard
The table below lists this function's compatibility with various features in Appian.
Feature | Compatibility | Note |
---|---|---|
Portals | Incompatible | |
Offline Mobile | Incompatible | |
Sync-Time Custom Record Fields | Incompatible | |
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 | 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. |