The "Data Store Activity" empowers you to both store and retrieve data required for use in other workflow executions or different workflows. This activity operates by storing data in the form of key-value pairs, accommodating various data types, from strings to objects. When you need to access the stored data, you simply use the associated key.
Here is an example illustrating how to set and retrieve a value using the Data Store activity:
To Set a Value
- Add a new Data Store activity.
- Ensure that the Set option is selected in the properties.
- Enter both a Key and a Value. For instance, you can enter "id" as the Key and "123456" as the Value.
- Click Save.
To Retrieve the Value
- Add a new Data Store activity.
- Ensure that the Get option is selected in the properties.
- Enter the corresponding key, in this example, "id."
- Click Save.
Scope
The Data Store activity offers two scope options:
- Global: The stored value is accessible in every workflow, making it available for use across different workflow executions.
- Current Workflow: The stored value is only accessible within the workflow where it was initially created, making it locally scoped to that specific workflow.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article