FunctionCopy link to clipboard
reverse( array )
Returns an array in reverse order.
ParametersCopy link to clipboard
Keyword | Type | Description |
---|---|---|
|
Any Type Array |
The array to modify. |
ReturnsCopy link to clipboard
Any Type Array
ExamplesCopy link to clipboard
Reverse a listCopy link to clipboard
1
reverse({10, 20, 30, 40})
Copy
Returns {40, 30, 20, 10}
.
Use with CDTsCopy link to clipboard
Note: These CDT values are for reference only. If you copy and paste this expression, it will not evaluate.
1
2
3
4
5
6
7
8
a!localVariables(
local!customer: {
'type!Customer'(customerId: 5),
'type!Customer'(customerId: 2),
'type!Customer'(customerId: 3),
},
fn!reverse(local!customer)
)
Copy
Returns {'type!Customer'(customerId: 3), 'type!Customer'(customerId: 2), 'type!Customer'(customerId: 5)}
.
Use with mapsCopy link to clipboard
1
2
3
4
5
6
7
a!localVariables(
local!maps: {
a!map(1: "a"),
a!map(2: "b")
},
fn!reverse(local!maps)
)
Copy
Returns {a!map('2': "b"), a!map('1': "a")}
.
Feature compatibilityCopy link to clipboard
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 | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
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 | Compatible | |
Process Events | Compatible | |
Process Autoscaling | Compatible |
FeedbackCopy link to clipboard
Was this page helpful?