Fivetran ExecModule
Overview
FivetranModule reads connection summaries from the Fivetran REST API. Use it to inventory ingestion connections in a destination group and check the setup, sync, and update state of a known connection. Compare its most recent success and failure timestamps against your workflow's freshness requirements before starting a transformation or distributing a report.
Usage
- Create a Fivetran API key with read access to the connections the workflow monitors.
- Save a Fivetran connection in the Integration Account Console.
- Add a Fivetran step in Workflow Studio and select the saved account under General > Connection.
- Use List Connections to find the upstream connection ID and Get Connection to check that connection before a downstream step.
Inputs
| Input | Type | Purpose |
|---|---|---|
operation | string | list_connections (default) or get_connection. |
groupId | string | Optional destination group filter for list_connections. |
limit | integer | Page size from 1 to 100 for list_connections. Defaults to 50. |
cursor | string | Optional continuation cursor from a prior list response. |
connectionId | string | Fivetran connection ID required for get_connection. |
Outputs
| Output | Type | Meaning |
|---|---|---|
status | string | success or error for the lookup. |
httpStatus | integer | Provider HTTP status when available. |
connections | array | Connection summaries on the current list page. |
count | integer | Number of connection summaries on that page. |
nextCursor | string | Continuation cursor when Fivetran reports another page. |
connection | object | Single summary returned by get_connection. |
error | object | Sanitized code, message, and retryable flag, with retryAfterSeconds when available. |
A summary contains the provider ID and available groupId, service, schema, paused, setupState, syncState, updateState, succeededAt, and failedAt. State values come from Fivetran. A successful lookup describes the result of the API request. Use the returned fields to determine whether ingestion meets your requirements.
IntegrationAccount Requirements
Use an authorized READY IntegrationAccount with provider FIVETRAN. Enter the Fivetran API key in the protected apiKey field and its API secret in the protected password field. Workflow inputs contain connection identifiers and filters. The workflow credential broker resolves the saved credentials.
For a system key, grant connection read access (CONNECTOR with READ) and limit its resource scope to the intended connection or destination group where possible. A user key inherits its user's Fivetran permissions. Verify that the chosen key can read the intended connections before scheduling. Fivetran API authentication
Configuration
Requests use HTTPS Basic authentication against the fixed api.fivetran.com endpoint with Fivetran's version 2 response format. Select the saved connection in Workflow Studio, then enter operation-specific fields. Fivetran group and connection IDs are text identifiers.
Operations
- List Connections returns one page of connection summaries the key can read. Narrow the page to a group when monitoring a single destination.
- Get Connection returns the current summary of one connection. Use its state and available timestamps to implement a freshness policy in the workflow.
Errors and Failure Modes
| Condition | What to check |
|---|---|
| Invalid input | Check the operation, connection ID, and page size. |
| Connection unavailable | Check that a ready Fivetran connection is selected and both credential fields are set. |
| HTTP 401 or 403 | Check whether the key is current and has read access to the requested connection or group. |
| HTTP 404 | Confirm the connection ID and its visibility to the saved key. |
| HTTP 429 or transient provider error | Use the retryable flag and respect retryAfterSeconds when available. |
| Timeout or oversized response | Try a smaller page or a group filter. Decoded responses are limited to 2 MiB. |
Example
A reporting workflow checks the connection feeding its orders data before it starts a transformation. It looks up the upstream connection by ID.
{
"operation": "get_connection",
"connectionId": "orders_ingestion"
}
An example successful lookup returns a connection summary.
{
"status": "success",
"httpStatus": 200,
"connection": {
"id": "orders_ingestion",
"groupId": "analytics_warehouse",
"service": "postgres",
"schema": "orders",
"paused": false,
"setupState": "connected",
"syncState": "scheduled",
"updateState": "on_schedule",
"succeededAt": "2026-11-07T05:42:00Z"
}
}
Check that the connection is active and that succeededAt falls within your reporting window. Compare failedAt when present and route missing, stale, or ambiguous results for review before distributing the report.
Notes
- Pagination. Pass
nextCursorascursorwith the same group filter and page size until no continuation is returned. - Rate limits. Space out recurring checks and use bounded retries with backoff. Each step makes a single API request. Fivetran rate limits
- API limits. The connector returns a selected set of connection health fields. Source records, credentials, connection configuration, and provider diagnostics are outside its scope.
- Idempotency and destructive behavior. Both operations are read-only. Repeating a lookup can reflect a newer ingestion state.