When an import updates records or skips the ones that already exist, it has to recognize an existing record before it writes. integrator.io gives every supported import the same two ways to do that — check whether a field in the incoming record already holds a value, or search the destination with a dynamic lookup — and the write operation you choose decides what happens to the records it finds. This article explains which connectors support it, how the write operations differ by connector family, and how to choose between the two identification methods.
Identifying existing records is available on imports to relational databases and HTTP APIs:
- Import data into Amazon Redshift
- Import data into Google BigQuery
- Import record data into an HTTP destination app
- Import data into Microsoft SQL
- Import data into MongoDB
- Import data into MySQL
- Import data into Oracle DB
- Import data into PostgreSQL
Choose the write operation
The operation decides what the import does with the records it identifies as existing and the ones it doesn't. The labels depend on the connector; the behaviors are those described in Imports overview.
Relational databases through an on-premise agent offer Insert, Update, and Insert or update. Insert adds every incoming record; Update changes only the records that exist; Insert or update does whichever applies to each record. Oracle DB (SQL) is the exception — it doesn't use these operation types. After you choose, integrator.io checks each record against the identification method you set and routes it accordingly.
Relational databases through a cloud connection write with SQL you build: Use bulk insert SQL query (recommended), Use SQL query once per record, Use SQL query once per page of records, or Use SQL query on first page only. The options vary by database; see the database's import article in Database connectors.
HTTP and REST APIs offer the Composite method, which combines two API calls into one import and gives you three behaviors:
| Composite method | Records that don't exist | Records that exist |
|---|---|---|
| Create new records & ignore existing records | Created | Left unchanged |
| Create new records & update existing records | Created | Updated with the incoming data |
| Ignore new records & update existing records | Left unchanged | Updated with the incoming data |
Choose how to identify existing records
- Go to Build
> Flows, open the flow, and then select the import step to open its editor.
- In How would you like the records imported?, choose the write operation for your connector as described above — for an HTTP import, set HTTP method to Composite and choose the Composite type.
- In Identify existing records, set How would you like to identify existing records? to one of the two methods. For Records have a specific field populated, enter Which field?.
- Select Save & close.
| Method | How it decides | Use it when |
|---|---|---|
| Records have a specific field populated | Checks whether the field you name already has a value in the incoming record. A record with a value is treated as existing. | The source record already carries the destination's ID — because an earlier lookup added it, or because the record was created by a previous run and the ID was mapped back. |
| Run a dynamic lookup | Searches the destination for a record that matches criteria you build from the incoming record. A match means the record exists. | The incoming record has no destination ID, but it has a value — an email address, a SKU, an external ID — the destination can be searched by. |
To build the dynamic lookup, see Add a lookup to an import mapping. For the other ways a flow can look data up, see Lookups overview.