Save and retrieve data (Key-Value)
The Save and retrieve data (Key-Value) (kvp) allows storing and retrieving small values across message executions. If a from path is specified, the value at that location is saved under the key provided via the key parameter. If a to path is given, any existing value for that key is retrieved and inserted into the message.
-
From: If specified, this value will be extracted from the message and stored for later use.
-
To: If there is a previous value stored with this key, that value will be copied into the message using the to field.
-
To retrieve data without storing, leave the From field empty.
-
To store data without retrieving, leave the To field empty.
Attributes for Key-Value Storage Mapping
| Attribute | Required | Description |
|---|---|---|
| From | Yes | Defines the source field for the mapping. |
| To | Yes | Defines where the result should be inserted. |
| Precedence | Yes | Determines the order in which this mapping is applied relative to others. |
| Function Type | Yes | Must be "Enrichment/lookup functons" |
| Function | Yes | Should be set to "Save and retrieve data (Key-Value)". |
| Key: | Yes | The unique identifier used to store and retrieve values. Supports substitution for dynamic use. |