Implement delay in my workflow communicating with external API

I’m using API connector to make calls to an external API. I’m using a workflow to send POST requests to send some data to the external API which is required to perform some tasks which take up some time to finish. For some reason, my workflow continues and the API end point does not finish the task. How can I implement some delay in my workflow so that to wait for the external API to finish?

Thanks

Hey @ccku07,

You could introduce a delay under Workfows > Navigation > Add a pause before next action to get it done. :slight_smile:

Looks like “Add a pause” only works on the client side, not server side.

Add a pause before next action
This action pauses the workflow for the number of milliseconds entered. This is useful if you want to wait before animating an element, etc. This will have no impact on actions that happen on the server, like data modifications, sending emails, etc.

I need the same server-side delay function for one of my apps. Still looking for a solution.

What you can do is create a Custom Event in the workflow. Have the Custom Event call the API. You can then use “Custom Event → Schedule a custom event” to call the Custom event you created with a delay in seconds.

Hope this makes sense.

3 Likes

It works !!! Thanks so much. Appreciated your help. @jbyrd20