Contact Workflow API: Missing Required Details?

SOLVE
Tim_Munro
Participant | Elite Partner

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?

0 Upvotes
1 Accepted solution

Accepted Solutions
IsaacTakushi
Solution
HubSpot Employee

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 Takushi

Alumnus, HubSpot Developer Support

View solution in original post

0 Upvotes
7 Replies 7
IsaacTakushi
HubSpot Employee

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 Takushi

Alumnus, HubSpot Developer Support
Tim_Munro
Participant | Elite Partner

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.

 

0 Upvotes
IsaacTakushi
HubSpot Employee

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 Takushi

Alumnus, HubSpot Developer Support
0 Upvotes
IsaacTakushi
HubSpot Employee

Hi, @Tim_Munro.

 

The team is investigating. No need to send me the link at this point!

Isaac Takushi

Alumnus, HubSpot Developer Support
0 Upvotes
Tim_Munro
Participant | Elite Partner

Thanks Isaac, much appreciated!

IsaacTakushi
Solution
HubSpot Employee

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 Takushi

Alumnus, HubSpot Developer Support

View solution in original post

0 Upvotes
Tim_Munro
Participant | Elite Partner

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.