Workflow global error handler access startTrigger data

Hello!

question/problem

  1. My goal: access the webhook data in a workflow error handler
  2. Issue: error handler blocks are detached from the startTrigger by design. If I want to create some behaviour around the error handler that need webhook body or headers is not possible.
    In this specific case a Slack Slash Command, if something fails in the workflow I want to inform the user on slack and I need to access the response_url generated by Slack when sending the request of a Slash Command
  3. Additional info: Self-hosted 3.196

I don't think there is a solution for this or I'm missing something. I think it is working as designed, maybe it could be a feature/change request. Unless there is a strong technical reason and it is ok.

Thank you!

Hello @dda, you're right, the global error handler blocks are detached from the startTrigger. I think you might be getting a linter error, but you should still be able to reference startTrigger.data.

If you're still having trouble, feel free to reach out here, I'd be more than happy to help! :slightly_smiling_face:

3 Likes