Skip to main content

Update list item

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Modify the value at a specific position in a list. This command allows you to change the content of a list item by specifying its index position, replacing the existing value with a new one.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

List

Select a list variable to modify its item

Any list variable

Yes

The list must already exist

Item index

Enter index to locate the item. Starting from 0, where 0 represents the first item, 1 represents the second item, and so on. Negative indices are also supported, where -1 represents the last item, -2 represents the second-to-last item, and so on

Integer

Yes

Both positive and negative indices are supported

Value

Enter the value to update the item with

Any data type

Yes

The new value will replace the existing item

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in any of the parameter fields by clicking the {x} button or typing the variable name enclosed in curly braces. This is particularly useful when:

  • You want to update a list item with a value that was calculated or obtained earlier in the workflow

  • You need to use a dynamically determined index position

  • You're working with a list that was created or modified by another action


Notes

  • The list must exist before attempting to update an item

  • If the specified index is out of range (e.g., trying to access index 5 in a list with only 3 items), an error will occur

  • This command modifies the existing list directly and does not create a new list

  • Make sure the value you're updating with is compatible with how the list will be used later in your workflow

Did this answer your question?