Data Stores
A Data Store is simply a key-value pair stored in the database that is available to all records in the system.
Usage
Use Data Stores to easily make variables persistent and retrievable.
Data Stores are used primarily in Message Scripts and Poll Processor scripts when you want to get and set functional data that is relevent to the integration but does not belong on the target record.
This is particularly handy in a uni-directional integration where polling the remote system is necessary. You can store data such as:
The last time a request was made
Identifiers that have been seen before
Watermarks
Example
Storing Strings
Use getData
and setData
to work with simple string-like data.
Storing Objects
You can also work with objects just as easily by using getDataObject
and setDataObject
. These functions automatically take care of encoding the object for database storage and decoding it for JavaScript usage again.
Last updated