Account Store

This action stores one or more key-value pairs to the Built.io Flow database and lets you retrieve it whenever required. All the keys stored using this action have a global scope, meaning, once you store a key for a particular workflow, you can retrieve its value in any other workflow, anytime in the future.

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: Enter the value that you wish to assign to key.

You can store multiple key-value pairs by clicking the '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 Built.io Flow 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. 

If you wish to delete the value of an existing key, you simply need to keep its corresponding 'Value' field empty and 'Run' the workflow. 

Once the key-value pair is stored, you can retrieve the value of the key anytime, in any workflow.

1_acc store.png

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.

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. This will retrieve the value of the specified key.

2_acc store.png

Output:
  • output-arrow account-store Account Store
    • left-triangle success boolean
    • left-triangle data object