How to temporarily store a record

A buffer helps to store records but if you require to store a record temporarily, the Cache destination step and the Cache Lookup step are used.

Illustrated below is an example of a flow where the Cache destination step and the Cache Lookup step are used.

In the below image, the Record Generator step is used as a source step and it is populated with 2 fields.


The below image is the Cache destination step. In the Scope field, you can select where you want your cache record to be stored from the drop down list. It can either be stored in a Global solution, the solution or in the flow. The Key field is the name you want to give the record, so you can reference it in your Cache Lookup step. The Expiry field is how long you want to store your cache record which is measured in seconds. The Path field is not required but it can be used if you want to store records in a path.

In the sub-flow, the Salesforce source step is being used to pull records out of Salesforce and the output is in the below image.

A Cache Lookup step is then used to reference the the record that was temporarily stored earlier using the Cache destination step. Illustrated in the below image is the Cache Lookup step. The Scope field is used to reference where the record was stored in. In the Key field, it is populated with the name that was used in the Cache destination step. For the record to be in the results, you have to map the source field to a new field. This can be done under the Mappings section by clicking on the highlighted icon in the below image to add a mapping field.

The below image is the output results after the Cache Lookup step. As highlighted in the below image, the new field “Dept” is added with the record value that was stored in the Cache destination step.