Flow designer to run in loop until we get desired output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi,
I'm running a API from custom flow action to get the order tracking status
1. from the API i will get status of package as string value(In Transit, Pending, Delivered)
2. if the state is other than In Transit or Delivered i need to wait for certain period of time and re re run the API and get the status, we have to wait until we get the status as In Transit or delivered
3. if status is In Transit, we have to run the API daily for 3 days until state changes to Delivered
4. we have to run the API Action till we get status as Delivered
can anyone guide me the steps to do this
, thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @s_dinesh01
Use wait for condition action to fulfill this requirement. Also it will easy us if you provide screenshots of the actions.
Happy to help!
To help others in the community find this solution, kindly mark this response as the Correct Answer and Helpful.
Warm Regards,
Deepak Sharma
Community Rising Star 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Hi @Deepak Shaerma , as im using custom action, but we cant use wait condition as we need a record as input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
you can add a wait for duration for 1 day and again recall the api just to check if the api returned the status as Delivered or not .
If the status was Delivered, then you can close the flow and if not then you can again use the same wait for duration for one more day and call the api again.
You can do this 3 times for 3 days to get the status. Also, you can include the schedule to wait for business days.
If my response helped you please mark it as helpful and accept the solution
Regards,
Nayan
