Persist Data

Persist small amounts of data that will be available in subsequent executions

Component key: persist-data

Description#

The Persist Data component provides functionality to persist small amounts of data that will be available in subsequent executions.

Actions#

Add Value To Set#

Add a value to the set with the specified key, creating the set as needed, return the set | key: addValueToSet

InputKeyNotesExample

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Value

data
/ Required
valueInputThis is the value that will be storedExample Value

Output Example Payload#

{
"data": {
"exampleKey": null
}
}

Append Value To List#

Append a value to the list with the specified key, creating the list as needed, and return the list | key: appendValueToList

InputKeyNotesExample

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Value

data
/ Required
valueInputThis is the value that will be storedExample Value

Output Example Payload#

{
"data": [
"Example Value 1",
"Example Value 2"
]
}

Get Value#

Get the value with the specified key, returning the specified default value if key not present | key: getValue

InputKeyNotesExample

Default Value

data
defaultValueInputThis is the value that will be returned if there is no value presentExample Default Value

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Output Example Payload#

{
"data": "Example Saved Value"
}

Remove Value#

Remove the value with the specified key and return the value | key: removeValue

InputKeyNotesExample

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Remove Value From List#

Remove the value from the list with the specified key and return the list | key: removeValueFromList

InputKeyNotesExample

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Value

data
/ Required
valueInputThis is the value that will be storedExample Value

Output Example Payload#

{
"data": [
"Example Value 1"
]
}

Remove Value From Set#

Remove the value from the set with the specified key | key: removeValueFromSet

InputKeyNotesExample

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Value

data
/ Required
valueInputThis is the value that will be storedExample Value

Output Example Payload#

{
"data": {
"exampleKey": null
}
}

Save Current Time#

Save the current time in UTC using the specified key and return it | key: saveCurrentTime

InputKeyNotesExample

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Output Example Payload#

{
"data": "2021-03-06T18:52:59.370Z"
}

Save Value#

Save a value with the specified key for use at a later time and return it | key: saveValue

InputKeyNotesExample

Key

data
/ Required
keyInputThis is the key that will be used to refer to the stored valueExample Key

Value

data
/ Required
valueInputThis is the value that will be storedExample Value

Output Example Payload#

{
"data": "Example Saved Value"
}