Looping a fix set of actions till a condition is met

I want to poll a service now API to check whether a ticket is closed or not for every 5 minutes and based on the result if it is not closed I want to repeat the check and if it is closed I want get out of the loop and continue my next set of actions in the workflow.
The current loop action in the workflow builder only allows for looping through an Array of Objects. Is there a workaround to get the above steps done in the workflow?

@shramik99

Have you tried considering schedule trigger?

You can implement a workflow with external trigger, and then conditionally & recursively have it call itself.

You can pass in additional parameters if needed.

2 Likes