We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Mar 22, 2020 9:12 PM - edited Mar 22, 2020 9:13 PM
Using the HubSpot workflow API to query the definition of a contact workflow from one HubSpot portal, and replicate the workflow configuration into another HubSpot portal. Have foud that some of the workflow configuration detail is not available via the HubSpot API. Consider the fragment below - part of a "Get Workflow" response:
{ "actions": [{ "acceptActions": [{ "acceptActions": [{ "actionId": 27, "emailCampaignGroupId": 71927769, "emailCampaignId": 84131493, "emailContentId": 8830681622, "goalListCount": 0, "stepId": 1, "type": "EMAIL" }, { "actionId": 28, "propertyName": "some_property", "stepId": 1, "type": "SET_CONTACT_PROPERTY" } ], "actionId": 2, "filters": [], "filtersListId": 1195,
Notice the property filtersListId = 1195. This is an "If/Then" branch step and the "filtersListId" represents filter logic that is to be applied to determine which branch is to be followed. For example, the logic could be "IF Contact Property X=Test THEN follow accept branch".
Unfortunately there seems to be no way to retrieve, via the HubSpot API, details of what the logic of filtersListId = 1195 actually is. For example, calling the "Contact Lists API" with to retrieve the list with id 1195 returns a 404 not found error.
Has anyone successfully retrieved this detail via the HubSpot API?
Solved! Go to Solution.
Mar 31, 2020 9:58 AM
Hi, @Tim_Munro.
Thank you again for your patience.
This issue should now be resolved and the if/then branch's filters
should be returned.
Please let me know if you are not seeing this behavior.
Isaac TakushiAssociate Certification Manager |
Mar 23, 2020 3:12 PM
Hi, @Tim_Munro.
Thanks for reaching out.
I'm seeing this behavior as well. (If I recall correctly, the v2 Workflows API previously displayed all filter conditions.)
Can you confirm the first four digits of the Hub ID you are querying and share the request URL (without any authentication details) so that I can share another example with my team?
Isaac TakushiAssociate Certification Manager |
Mar 23, 2020 3:39 PM
Thanks Isaac - that is interesting.
The Hub ID starts with: 4505 and we are calling the endpoint described here https://developers.hubspot.com/docs/methods/workflows/v3/get_workflow with workflowId set to 1043307.
Mar 24, 2020 8:45 AM - edited Mar 24, 2020 9:14 AM
Hi, @Tim_Munro.
Thanks, however I'm having trouble locating that workflow. Could you direct message me a link to it?
I'll be bringing this up to the team to get insight into whether anything changed and what can be done to surface this information for integrators like you.
I appreciate your understanding!
Isaac TakushiAssociate Certification Manager |
Mar 24, 2020 10:23 AM
Hi, @Tim_Munro.
The team is investigating. No need to send me the link at this point!
Isaac TakushiAssociate Certification Manager |
Mar 24, 2020 3:29 PM
Thanks Isaac, much appreciated!
Mar 31, 2020 9:58 AM
Hi, @Tim_Munro.
Thank you again for your patience.
This issue should now be resolved and the if/then branch's filters
should be returned.
Please let me know if you are not seeing this behavior.
Isaac TakushiAssociate Certification Manager |
Mar 31, 2020 3:37 PM
Brilliant, yes I can see those filters again now & so can successfully clone the workflow if/then branches between portals. Thanks for the assistance @IsaacTakushi.