A lookup retrieves data that the source records don't carry but the destination needs — the internal ID of a customer whose email you have, the tax code for a country, the item record behind a SKU. integrator.io gives you three ways to look data up, and choosing the right one is most of the work: a lookup step enriches every record in the flow, a lookup inside an import mapping resolves one destination field, and a lookup cache answers from data you store in integrator.io instead of calling an application. This article explains the three kinds, how a lookup step returns its results, and the limits that apply.
Three ways to look up data
| Kind | What it does | Use it when | See |
|---|---|---|---|
| Lookup step | A step on the canvas that calls an application or database once per record and adds the results to the record for every step after it. It's an export that runs in the middle of a flow, so it has an Export type and the same editor as an export. | Several later steps need the looked-up data, or you need more than one field back, or you need the whole matching record. | Add lookup, transfer, and other steps to a flow |
| Lookup in an import mapping | A static or dynamic lookup attached to one field mapping on an import. A static lookup translates values from a table you type in; a dynamic lookup searches the destination application when the import runs. | One destination field needs a value that depends on a source value — an ID for a name, a code for a label. | Add a lookup to an import mapping |
| Lookup cache | A table of reference data stored in integrator.io that flows read without calling an application. | The same reference data is used across flows, the source API is slow or rate-limited, or the values rarely change. | Lookup caches overview |
Imports also use a dynamic lookup to decide whether a record already exists before creating or updating it; see Identify existing records in an import.
How a lookup step returns data
A lookup step runs once for each record that reaches it. The fields it returns aren't added to the record on their own: configure results mapping on the step to choose which returned fields are kept and where they're placed; see Configure results mapping.
A lookup that finds no match isn't an error. By default, records with no lookup match continue through the flow without enrichment from that lookup. Use a results mapping to capture the lookup results — the result count is a more reliable check than an optional field that can be empty even on a match — and then filter or branch downstream when an empty result should change what happens. Proceed to the next application regardless on the step governs lookup failures, not empty results; to treat a miss as an error, add response validation or a hook.
Two settings on the lookup step shape the results:
- Export type — All, Delta, Once, or Limit, with the same meanings as on an export; see Export type. Most lookups use All, so every matching record is returned for each source record.
- One to many — when each lookup result contains child records that should each become a record of its own, set One to many and the Path to many; see Create a one-to-many import and access nested arrays.
A lookup can also retrieve a file for each record rather than records — the Look up additional files (per record) step type — and attach it as a BLOB for a later transfer step; see Add lookup, transfer, and other steps to a flow.
Limits
- A lookup adds its results to every record. A page of records can't be larger than 5 MB, and neither can a single record (see Flows overview); a lookup that returns a large result set per record can push a record over that limit. Narrow the search, or store the data in a lookup cache instead.
- A lookup step can't use an async helper. If the application answers asynchronously, make that call the flow's source export or use an import; see Use an async helper for asynchronous APIs.
- Lookups count as API calls against the application's connection. For a flow that processes many records, check the connection's concurrency settings; see Configure connections to optimize throughput and governance.
Where lookups appear
Lookup steps are exports, so they're listed with exports at Resources > Exports, and you can clone one from there; see Clone an export or import. On the canvas, a lookup step has the same Actions menu as an export — input filter, mapping, transformation, output filter, and a pre-save page hook; see Configure flow step options. Lookups inside a mapping are part of the import and are managed in the mapper.