Create an import from the Resources page when you want it to exist before any flow uses it, or when several flows will write to the same destination the same way — one NetSuite customer import that every lead flow ends in, say. The import you create here has the same editor and settings as one you create inside a flow; you add it to a flow afterward and map the fields there. This article walks through creating the import and the settings every import shares, whatever its connector. To create the import as a destination step of a flow instead, see Create a flow.
Prerequisites: You must have Manage permissions for the integration the import will be used in; see Manage user roles & permissions to an account. Keep the destination application's API documentation at hand for the record type, operation, and required fields.
Create the import
- Go to Resources
> Imports, and then select Create import.
- Select the Application to write records to. If it isn't listed, select HTTP and connect to its API directly; see Create a connection to an application.
- Select an existing Connection or select Create connection.
- Enter a Name that tells other builders what the import writes, and optionally a Description. Both appear when integrator.io suggests this import to someone building a flow; see Reuse an existing flow step.
- Select Next. The import editor opens with the sections for the connector you chose.
- If one incoming record should create several destination records, set One to many to Yes (advanced) and enter the Path to many; see Create a one-to-many import and access nested arrays.
- In How would you like the records imported?, configure the record type or endpoint and the operation. These settings depend on the connector; see the application's article in Connect to anything. For operations that update or skip records that already exist, see Identify existing records in an import.
- Optionally, expand Advanced and set the settings described in Common import settings.
- Select Save & close.
The import appears in the list on the Imports page.
Add the import to a flow
- Go to Build
> Flows, and then open the flow.
- Select Add step, select the same Application, and then select the connection the import uses.
- In the list of suggested steps, point to the import, and then select Use flow step.
- Select Mapping
on the step and map the incoming fields to the destination's fields; see Map data with Mapper 2.0.
The flow uses the import itself, not a copy, so a change made in one flow applies to every flow that uses it; see Imports overview. To give a flow its own copy, see Clone an export or import.
Common import settings
These settings appear on imports of every connector that supports them; the rest of the editor is connector-specific and described in the connector's own article.
| Setting | What it does | See |
|---|---|---|
| One to many and Path to many (in General) | Creates one destination record for each child record found at the path, instead of one per incoming record. With one to many on, Advanced also offers Override child record trace key template. | Create a one-to-many import and access nested arrays |
| Concurrency ID lock template (in Advanced) | A handlebars template that names the records whose order must be preserved; records with the same value are sent one after another even when the connection sends several records at once. | Preserve the order of records when using concurrency |
| Data URI template (in Advanced) | The same setting as on an export: a handlebars template that builds a link to the record in the destination application. | Common export settings |
| Blob key path (in Advanced, file transfers) | The path in the record to the key of the file that an earlier step stored in integrator.io; Purge blob data immediately? deletes the stored file once it's sent. | Send a file as multipart/form-data from an HTTP import |
| Configure async helper (in Advanced, HTTP-based connectors) | Makes the import poll an API that processes requests asynchronously. | Use an async helper for asynchronous APIs |
| Mock response (a tab beside Preview) | A sample response saved with the import for building response mappings and running the flow in test mode without writing to the application. | Debug a flow in test mode |
Filters, hooks, response mapping, and error handling are set from the step's Actions menu on the canvas rather than in the editor; see Configure flow step options.