Set Array List Index — Reference
Replace the item at a selected position.
Replace the item at a selected position.
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.
Set Array List Index
Section titled “Set Array List Index”Replace the item at a selected position.
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. |
| Index | A zero-based item position. For example, 0 is the first item and 1 is the second. Validate it against the current Size. |
| 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 two id/name records and its item schema. Select products, set Index to 1, then set the Item fields to id 2 and name Pen. Read the list and confirm that the second record changed while the first stayed the same.
Check the behavior
Section titled “Check the behavior”This replaces the item; it is not a partial database update keyed by id. Use an existing non-negative index below Size. Out-of-range indices can create gaps or nonportable key behavior.
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.