Connect Card: Webhook after successful connection
CompletedHello,
When a connector is created via connect card, we lose visibility into the actions the user took on the connector screen. Namely, we don't know which accounts they ultimately selected to sync, and our application requires this data. We also don't know that they even completed the sync. In order to get this data I need to fetch it from the connector details, but I also don't know when to go check for this data because the redirect doesn't tell me which connector was successfully synced.
There are two routes I can see and I'd prefer the first (open to suggestions, too!):
1. After a successful connection, Fivetran posts the connector details to a URL I define.
2. Allow for dynamic parameters in the redirect url. For example 'connector_id' or 'connector_accounts'. In this case, I could pass the information from the params to the backend and handle it accordingly.
If you have any other suggestions on how to approach this I'd greatly appreciate it.
Thank you!
-
Official comment
You can now do this with our edit_connector event which is now available as a webhook! The `editType` field tracks `UPDATE_SETUP_STATE` from `incomplete` to `connected`.
For example:
{
event: 'edit_connector',
// ...
editType: 'UPDATE_SETUP_STATE',
properties: { setupState: 'connected' },
oldProperties: { setupState: 'incomplete' }
}
This should help you accomplish what you're looking for, let us know!
Thanks,
Jimmy
Please sign in to leave a comment.
Comments
1 comment