Skip to main content

Create list

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Create a new empty list to store multiple values of a specified data type. Lists are dynamic collections that can be used to store and manage multiple items of the same type, allowing for efficient data manipulation in workflows.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

List type

Select the type of data that will be stored in the list

Any, String, Number, Boolean, Date

Yes

"Any" allows storing different data types in the same list

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 produces a variable that contains the newly created empty list. The variable can be used in subsequent actions to add, remove, or manipulate list items.


Using Variables in Conditions

You can use the created list variable in various operations:

  • Add items to the list using the "Add to list" action

  • Access specific items using index notation

  • Loop through list items using the "For each" action

  • Manipulate list contents with other list-related actions


Notes

  • The list is initially created empty with no items

  • The selected data type determines what kind of values can be stored in the list

  • Lists are zero-indexed, meaning the first item is at position 0

  • When using the "Any" type, you can store different data types in the same list, but this may cause issues when performing operations that require a specific data type

Did this answer your question?