Can't unblock Custom Workflow Action

Hello!

I’m trying to use custom workflow action block feature and have an issue. According to documentation, there is

{
 "outputFields": {
 "hs_execution_state": "BLOCK"
 }
}

in my response in action.

Execution is succesfully blocked and then I’m trying to unblock it with API endpoint

https://api.hubspot.com/automation/v4/actions/callbacks/complete

payload:

{
 "inputs": [
 {
 "outputFields": {
 "hs_execution_state": "SUCCESS"
 },
 "callbackId": "ap-8642616-737382573577-1-0"
 }
 ]
}

It returns 204 code, but object is still in status “waiting” in Action. Callback ID is absolutely correct, checked it several times. What I’m doing wrong?

I do not have any answer for you. Just want to point out that I have the same issue. It is not a simple delay either since I have waited ~20 hours since the requests with no result.

The blocking seems to be completely broken. It does not seem to use the time specified in the `hs_expiration_duration` field. Not even their own example with the value “P1WT1H” is working. It always use the default expiration time of 1 week (P1W).


@PhilipW wrote:

The blocking seems to be completely broken.


Yes, exactly. Do you know how to escalate it to the product dev team? Support answered me that such issues are out of their scope :downcast_face_with_sweat:

I will try to create an issue in the Hubspot github rep.

Ask them to contact the dev team.

There is a slack channel. But as you can see from my latest post there, you can’t expect to get any answers: Slack.

Yeah, I found another post about this issue:

And there is mine:

I have already asked Support to contact devs, but my request was declined (

Sad to hear :disappointed_face:

Let me know if you find a solution. Maybe then my last two days worths of work wont go to waste…

For anyone looking for an answer, I have been able to solve this with help from HubSpot support:

1. If you are in Europe, use the api with base url https://api-eu1.hubspot.com.

2. Add search queries for appId and portalId: (?appId=<Your appId>&portalId=<Your portalId>

3. Make sure you use correct authentication (I was using my private app for authentication, which apparently was not ok since the private app creates a separate portalId from the portal where the workflow is created).

Hope this helps.

@YGubkin

Thanks for your reply.

I have tried it - and found another possible reason why you can’t unblock action.

Required scope for this request - automation and this scope is available only with Marketing Hub Pro and higher plan.