Using Lookup Tables
Use a lookup table in a workflow to fetch a row by its key, for example to translate a code or enrich a record.
Before you begin
- The table must be published to Development. A workflow that uses a table that is still a draft fails validation. See Publishing a table to Development.
- The environment the workflow runs in must run the table. Studio warns you when you deploy a workflow to an environment that does not.
Use the table in an activity
- Add a Lookup activity to the workflow. See Lookup. To write or delete rows, use LookupUpsert or LookupDelete.
- In the activity configuration, select the table, or drag it from the Tables panel into the field.
- Open the data mapper. The table's key columns appear as inputs, marked as required.
- Map a value to each key column.
The mapper shows the columns Development runs. If you change the columns in the draft, publish the draft before mapping the new columns.
How you know it worked
The workflow passes validation, and a test run returns the row that matches the key.