This action helps to store one or more key-value pairs to the Built.io Flow database and retrieve it whenever required. All the keys stored using this action have a local scope, meaning, if you store a key for a particular flow, its value can be retrieved within the same workflow only. It can't be used in any other workflow.
In order to store key-value pair, you need to first 'Set' a key and then 'Get' it using this action. Lets first understand how to 'Set' a key.
Set a key-value pair
Add this action to your canvas and configure it. Select 'Set' from the 'Select Action' drop-down list.
Key (Mandatory): Enter the key name that you wish to set.
Value (Mandatory): Enter the value that you wish to assign to key.
You can store multiple key-value pairs by clicking '+ADD' button. Once you have entered the details, click on 'Done' to return to your canvas. It's important to 'Save' and 'Run' the workflow, in order to store the key-value pair/s in the workflow engine local storage. If you store a key-value pair with existing key but a different value, Built.io Flow will overwrite the value of the key. Once the key-value pair is stored, you can retrieve its value in the same workflow at any time in the future.
Retrieve the value of a stored key
Add this action to your canvas and configure it. Select 'Get' from the 'Select Action' drop-down list.
Key (Mandatory): Enter the key whose value you wish to retrieve
If you want to retrieve values for multiple keys, you can do so by clicking on '+ADD' button. Once you have entered all the details, click on 'Done' and 'Run' the workflow. You will get the value for the specified key.
- success boolean