Memory Store

This action allows you to store on or more key-value pairs in the Built.io Flow local storage and retrieve them when needed. However, it's important to note that, the storage and the retrieval of the key-value pairs is limited to only one workflow run. If you delete the 'Memory Workflow' action from your workflow, the corresponding key-value pairs will be removed from the workflow database as well.

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.

Field data

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 Built.io Flow local storage.

memory-store-set

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.

Field data

Key (Mandatory): Enter the Key whose value you wish to retrieve.

memory-store

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. 

Output:
  • output-arrow memory-store Memory Store
    • left-triangle success boolean
    • left-triangle data object