I would like to know how to send a REST API call when there are errors in the workflow (that is published in the Gallery). The body of the REST API call should have the value of an input question (that comes from a text box tool).
My first approach was to have a second workflow that calls the main one and checks its status - once it completes, the second one checks if there are errors and sends the API call. The textbox tool is present in both workflows, so I don't have a problem with obtaining the input from the textbox when sending the API Call. The problem with this solution is that I cannot have two workflows running at the same time, I need it all to be in one workflow.
My second idea was to use the 'Events' tab of the main workflow and set it run "After Run With Errors" and use the PowerShell to send the API call. I just couldn't figure out how to get the text from the text box tool - is it possible?
Are there other solutions to this problem?
PS: The workflow is published in the Gallery and is called via the Alteryx Gallery API.