Articles in this section

Exports overview

An export is the flow step that retrieves records from a source application. Every flow starts with a source step — an export that polls the application on a schedule or on demand, or a listener that receives records the application pushes — and an export is the most common of the two. This article explains what an export needs, how Export type decides which records it retrieves, how a flow behaves when it has more than one export, and where the settings that shape an export's data are explained.

What an export needs

An export retrieves records by calling the source application's API. To do that it needs:

  • A connection to the application. The connection authenticates the export; see Create a connection to an application. An export can use a connector built for the application or a universal connector (HTTP, FTP, AS2, or a database connector); the connector decides which settings the export editor shows. For the settings of a specific application, see Connect to anything.
  • The resource and operation to call — for example, a NetSuite saved search, a Salesforce SOQL query, a database query, or an HTTP endpoint and method. The labels depend on the connector.
  • Search criteria that limit the records returned, when the API supports them.

The application returns records in its own format; integrator.io parses them into JSON records for the steps that follow. A file export parses each file into records as well; see Create a flow for the file and transfer step types.

Export type

Export type decides which of the matching records an export retrieves each time the flow runs. It's set in the export editor's Configure export type section, on exports and on lookup steps.

Export type Retrieves Use it for
All Every record that matches the export's criteria, every run. Small data sets, full reloads, and reference data.
Delta Only records created or modified since the flow last ran. The export's request has to use the {{lastExportDateTime}} value — in the relative URI or request body for an HTTP export, or a date filter for other connectors. Keeping two applications in sync without re-sending unchanged records.
Once Each record exactly once. After a record is exported, integrator.io marks it in the source application and excludes marked records from later runs; see Once exports. Transactions that must never be processed twice, such as invoices.
Limit The first records that match, up to a number you set. Testing a flow with a small, predictable sample.

A delta export remembers the date and time of its last run. To retrieve older records on demand, run the flow with a start date; see Run a flow.

Once exports

Once doesn't mean the flow runs one time. It means each record is exported one time, and that needs a way to mark records as exported in the source application and to leave marked records out of later exports:

  • A true/false tracking field on the source record — Exported, say — that starts out false.
  • A query or saved-search filter on the export that selects only unmarked records.
  • Permission for integrator.io to write the mark back: a boolean field update in NetSuite or Salesforce, an UPDATE statement for a database, or a callback request for an HTTP API, depending on the connector.

Records are marked when their page leaves the export — not when a later import succeeds. If a downstream import fails, the next scheduled run won't export those records again; retry them from the error instead. See Retry or resolve flow errors.

Several exports in one flow

A flow can have more than one export. Each export's records stay separate: all the records from the first export pass through every later step before the flow begins processing records from the second export. The data sets are never merged. To give one export its own schedule, use Schedule override on that step; see Schedule a flow.

Where exports appear

Every export, lookup, and listener in your account is listed at Resources resources-icon.png > Exports, whether or not a flow uses it. You create an export either as the source step of a flow — see Create a flow — or as a standalone resource that you add to flows later; see Create an export. When you open a flow's source step, integrator.io suggests exports you already have; see Reuse an existing flow step.

What you can configure on an export

To See
Set the connection, resource, search criteria, and the settings every export shares Create an export
Filter, transform, or script the records, or override the schedule for one export Configure flow step options
See the request integrator.io sends and the records that come back Preview export data
Sort records or group them by field Sort and group records
Retrieve records from an API that processes requests asynchronously Use an async helper for asynchronous APIs
Run custom code on each page of records Export and import hooks
Save sample records for building mappings and test runs Provide mock output data for exports and lookups
Set when the flow, and therefore the export, runs Schedule a flow
Receive records in real time instead of polling Introduction to webhook listeners