A delta export retrieves only those matching records that were changed or created since the previous flow ran or a specified date. Certain HubSpot API requests do offer the Delta export type as a built-in option. However, integrator.io is not always able to set the HubSpot query parameters to check the “last exported” (lastExportDateTime) value that it typically relies on to export only unsynced records.
As a safeguard, you can achieve full delta functionality in v3 of the HubSpot API with the following steps:
Companies API
- Create a HubSpot export with the following settings:
- API version: v3
- API name: CRM API: Companies
- API endpoint: Search for Companies
- In the Configure body parameters section, click Launch. The Search parameters window opens.
- Enter the following code in the filterGroups section:
[
{
"filters": [
{
"propertyName": "hs_lastmodifieddate",
"operator": "GT",
"value": "{{lastExportDateTime}}"
}
]
}
]
- Save and close the filter, and run the flow.
Contacts API
- Create a HubSpot export with the following settings:
- API version: v3
- API name: CRM API: Contacts
- API endpoint: Search for Contacts
- In the Configure body parameters section, click Launch. The Search parameters window opens.
- Enter the following code in the filterGroups section:
[
{
"filters": [
{
"propertyName": "lastmodifieddate",
"operator": "GT",
"value": "{{lastExportDateTime}}"
}
]
}
]
- Save and close the filter, and run the flow.
Note: The Contacts API uses the field 'lastmodifieddate' whereas the Companies API and the Deals API use 'hs_lastmodifieddate'.
Deals API
- Create a HubSpot export with the following settings:
- API version: v3
- API name: CRM API: Deals
- API endpoint: Search for Deals
- In the Configure body parameters section, click Launch. The Search parameters window opens.
- Enter the following code in the filterGroups section:
[
{
"filters": [
{
"propertyName": "hs_lastmodifieddate",
"operator": "GT",
"value": "{{lastExportDateTime}}"
}
]
}
]
- Save and close the filter, and run the flow.
Comments
0 comments
Please sign in to leave a comment.