Create a lookup cache to store data that your flows reuse, such as field mappings. You can enter key-value pairs directly for a small dataset, or upload a CSV file for a larger one. This procedure is for builders with permission to create lookup caches in an integration.
Before you start, decide which data benefits from a lookup cache, such as extensive or repeated mappings. For when to use one, see Lookup caches overview. For size limits and permissions, see Lookup cache limits and permissions.
Data types
Values can be a string, number, boolean, null, or object, including nested objects. Keys are strings. Keep these rules in mind:
- Values that you enter in double quotation marks are strings, including numbers, true, false, and null. Values without quotation marks are numbers.
- A value can't be an array. Put the array in an object.
-
keyandvalueare reserved and can't be property names.
Create a lookup cache with key-value pairs
- Go to Resources
, and then select Lookup caches.
- Select Create lookup cache.
- For Name, enter a unique, meaningful name.
- For Description, describe what the lookup cache stores. Other builders reuse lookup caches across flows, so a clear description helps them.
- (Optional) Select Include data when lookup cache is cloned or downloaded to include the data in clones and downloads. See Clone, download, delete, or purge a lookup cache.
- Select Next. integrator.io creates the lookup cache with no data.
- Select Add row, and then enter a key and a value. Repeat for each row.
- Select Save & close.
To use the lookup cache in an integration, make sure it's registered with that integration. See Register lookup caches with an integration.
Create a lookup cache from CSV
Prerequisites:
- A CSV file that is 5 MB or smaller, with a header row that names each column, one record per line, and comma-separated values. Each row can be 64 KB or smaller. One column holds unique values to use as the lookup cache key, and a repeated value in that column prevents the save. Column names can't repeat.
- If your file is larger than 5 MB, split it into several files of 5 MB or less, or load it with Create a Data loader flow.
- Other file formats, such as JSON and XLSX, aren't supported directly. Convert them to CSV first.
- Go to Resources
, and then select Lookup caches.
- Select Create lookup cache.
- For Name, enter a unique, meaningful name.
- For Description, describe what the lookup cache stores and name the lookup cache key column so you can find it later.
- (Optional) Select Include data when lookup cache is cloned or downloaded.
- For CSV file, select your file. To use a different file, select CSV file again.
- For Lookup cache key, select the column with a unique value in every row.
- Select Next. The preview shows the key column as the key and the remaining columns as one object value.
- Check the preview, and then select Save & close. The lookup cache is created when you save, not when you select Next.
To upload the file again, select the same key column as the lookup cache key so the data matches.