Is there a way to know if all contacts have been enrolled to a Workflow through the API?

Hi!

I’m looking for a way to get notified once all contacts have been enrolled in a Workflow.

One way I know I can do it is by checking the Workflow’s performance, but it’s very hacky and I have to check it using a cronjob over and over.

Is there a better way of doing it?

What I want to accomplish is: I need to save the inputs of my Custom Action into a CSV file to be used afterwards. The problem is that to use it “afterward”, I need to know when the Workflow has finished enrolling all Contacts.

Hi, @tcf-truedialog :waving_hand: Thanks for your question. You raise a valid point.

Currently, there isn’t a direct method through the HubSpot API to get notified specifically when all contacts have been enrolled in a Workflow. As you’ve mentioned, one workaround is to regularly check the Workflow’s performance, though this approach requires consistent polling, such as with a cron job.

Unfortunately, without a specific API endpoint to directly track the completion of Workflow enrollment, this polling method remains the most feasible approach available. I understand it’s not the most elegant solution and may feel a bit cumbersome.

Best,

Jaycee