Display a success message when all workflow blocks are successful

In my app I am invoking a workflow trigger from a javascript resource query. How can I display a success message when all blocks are successful?

It appears that the debug log will show the trigger as successful in 1 sec even though the full workflow takes 7 secs for all blocks to complete.

1 Like

Hello @isaacjm!

Are you using a response node in your workflow? If so, you should be able to setup the event handlers on the Workflow query to show the success message if the response comes back the way you require.

I see the 'response' block - do you know if passing the workflowContext.lastRun.status reflect the successful run?

image

I think you can return anything you want in the body here because you can check the Status Code: 200 in the App's success event. Also, I believe you can create a response block that is a global error handler and send back an error status message and code (but I haven't tried that out yet, just had a thought).

1 Like

Cool - thank you for the guidance!!

1 Like