Create Array List — Reference
Create a mutable list for the current server request/action.
Create a mutable list for the current server request/action.
Before you begin
Section titled “Before you begin”- A Server Connect action. This list lasts within the current request/action, not across requests.
Create Array List
Section titled “Create Array List”Create a mutable list for the current server request/action.
Settings
Section titled “Settings”| Setting | Meaning |
|---|---|
| Name | The name of the mutable list to create, for example products. |
| Value | The initial array. Use [] for an empty list or an array of records. The runtimes do not turn arbitrary text into a valid list automatically. |
| Define Schema | Describes the item fields to the editor and supplies schema-driven Item controls for Add/Set. It does not validate or transform the list at runtime. |
Worked example
Section titled “Worked example”Create Name products with Value [{“id”:1,“name”:“Notebook”}]. Define the item schema with numeric id and text name when it cannot be inferred. Add Get Array List Value named result, choose products and enable Output. The response should contain result = [{“id”:1,“name”:“Notebook”}].
Check the behavior
Section titled “Check the behavior”The list is held in request/action memory. It is not a database table, browser Array component or session value. A non-array initial value becomes an empty list in these implementations; supply an actual array.
Return to the action workflow
Section titled “Return to the action workflow”Use a Get Array List Value step when you need to expose the final list after mutations. Use a database or server session when the data must persist beyond this request.
Check your result
Section titled “Check your result”You can configure this operation and verify the example’s resulting value or list.