Articles in this section

Imports overview

An import is the flow step that writes records to a destination application: it creates, updates, or deletes records there using the data the earlier steps retrieved and prepared. Every complete flow has at least one import, and a flow can have several. This article explains what an import needs, how imports handle records that already exist in the destination, and where the settings that shape an import are explained.

What an import needs

An import writes records by calling the destination application's API. To do that it needs:

  • A connection to the application; see Create a connection to an application. As with exports, the connector you choose decides which settings the import editor shows; for a specific application, see Connect to anything.
  • The operation — what to write and how: the record type or endpoint, and whether to create, update, or delete.
  • A mapping from the fields in the incoming record to the fields the destination expects. Mapping is where you set fixed values, convert formats, and look up IDs; see Map data with Mapper 2.0.

The destination's response — a new record ID, a status, an error — can be mapped back onto the record for the steps that follow; see Handle failed records in a flow. Most APIs reject a record that's missing a required field, so a mapping that leaves a required destination field empty produces an error for that record.

How imports handle existing records

Every destination API has its own operation names, but the behaviors an import can give you are the same across connectors:

  • Create a record for every incoming record. If the record already exists, the destination usually returns an error.
  • Update an existing record and ignore incoming records that don't match one.
  • Create or update — update the record when a match exists, create it when none does. This is the behavior most syncs need.
  • Ignore existing — create records that don't exist and leave matching records unchanged.
  • Delete records that match criteria built from the data in the flow.

For the create-or-update, update-only, and ignore-existing behaviors, the import has to decide whether a record already exists — by checking whether a field in the incoming record has a value, or by searching the destination. See Identify existing records in an import. For the operation labels of a specific application, see its article in Connect to anything.

One incoming record can also create several destination records — an order that becomes several line items, for example. See Create a one-to-many import and access nested arrays.

Where imports appear

Every import in your account is listed at Resources resources-icon.png > Imports, whether or not a flow uses it. You create an import either as a destination step of a flow — see Create a flow — or as a standalone resource that you add to flows later; see Create an import. An import used by more than one flow shows a Proceed with caution banner when you open it; select Used by to see every flow and integration that depends on it before you change it. See Reuse an existing flow step.

What you can configure on an import

To See
Set the connection, operation, and the settings every import shares Create an import
Map incoming fields to destination fields Map data with Mapper 2.0
Filter the records the step processes, run hooks, map the response, or set error handling Configure flow step options
Decide how the import treats records that already exist Identify existing records in an import
Create several destination records from one incoming record Create a one-to-many import and access nested arrays
See the request integrator.io will send and the destination's response Preview import data
Send a file to an API that expects multipart/form-data Send a file as multipart/form-data from an HTTP import
Write to an API that processes requests asynchronously Use an async helper for asynchronous APIs
Call a reusable tool instead of writing to an application Use a tool step in a flow
Run custom code before mapping, before sending, or after the response Export and import hooks
Limit parallel requests to the destination Configure connections to optimize throughput and governance
Enrich records before they reach the import Lookups overview