Skip to main content

Create dictionary

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Creates a new empty dictionary. A dictionary is a collection of key-value pairs that allows you to store and retrieve data using unique keys.


Parameter Values

Input parameters

This action does not require any input parameters.

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 creates a new empty dictionary variable that can be used to store key-value pairs. The dictionary is stored in the specified output variable.


Using Variables in Conditions

You can use the created dictionary variable in subsequent actions by referencing it with the {variableName} syntax. The dictionary can be used in various operations such as:

  • Adding key-value pairs

  • Retrieving values by key

  • Checking if a key exists

  • Iterating through dictionary items


Notes

  • The created dictionary is initially empty and will need to be populated using additional actions.

  • Dictionary keys must be unique; adding a value with an existing key will overwrite the previous value.

  • Dictionaries are useful for organizing related data and providing quick lookups by key.

Did this answer your question?