APIs & Integrations

DFall9
Participant

get /automation/v3/workflows/:id segmentCriteria empty for event trigger

Hi,

 

I have a workflow with the following configuration

- Trigger when an event occurs

- Filtering on Contact

- List membership changed (with a selected list)

 

When using the api get /automation/v3/workflows/:id, the segmentCriteria is an empty array.

 

Where do I get the trigger configuration from ?

 

Cheers

2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

get /automation/v3/workflows/:id segmentCriteria empty for event trigger

Hey, @DFall9 👋 Thanks for the interesting question. I noticed the example response in the documentation also has an empty array. I'm going to do more research for us. I'll add anything I find out for us here in this thread.

 

Talk soon! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
jpvaillancourt
Participant

get /automation/v3/workflows/:id segmentCriteria empty for event trigger

Is this supposed to be fixed? It seems I have the same problem while fetching a Workflow. I'm trying to create a simple script to duplicate a Workflow while chaging some variables, but it turns out to be quite time consuming because of this bug.

There's also some issue with some segmentCriterias while creating. Here's a test I did in PHP, and the resulting Workflow :

 

jpvaillancourt_0-1715366768187.png

jpvaillancourt_2-1715366819986.png

 

 



0 Upvotes