Add in Array List — Reference
Append one item to an existing mutable list.
Append one item to an existing mutable list.
Before you begin
Section titled “Before you begin”- A Server Connect action. Create the referenced Array List earlier in the same request before using it.
Add in Array List
Section titled “Add in Array List”Append one item to an existing mutable list.
Settings
Section titled “Settings”| Setting | Meaning |
|---|---|
| Array List | Choose a Create Array List step available above this action. The stored reference is its name; it is not a database connection or a client-side component. |
| Item | Fields generated from the selected list’s item schema. Supply the full new item, such as its id and name. Changing the selected list clears the previous item configuration. |
Worked example
Section titled “Worked example”Create products with [{“id”:1,“name”:“Notebook”}] and its item schema. Select products in Add in Array List. In the schema-driven Item group, set id to 2 and name to Pencil. Read Get Array List Value afterward: the list contains Notebook followed by Pencil.
Check the behavior
Section titled “Check the behavior”Add mutates the list but does not return a result array. The Item fields depend on the selected list’s schema. If they are missing, check Define Schema on Create Array List rather than inventing unrelated fields in this action.
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.