Welcome to the Make community!
This has been asked several times before.
The only method closest to a do-while loop in programming in a Make scenario is a repeater-error.
For more information, see
- Google Drive - Search for Files/Folders - search all subfolders - #5 by samliew
- I dont know how to use webhook to get update - #2 by samliew
- Why is Polling at make.com is so damn hard? - #4 by samliew
- How can I exit a repeater and continue the flow of a scenario? - #2 by samliew
- How can I create a while loop in make?
- How do I write a Do ... Until loop with exit condition
- How to create an while loop in make
- etc.
Short answer:
You need to throw an error to get out of the “loop”.
There are two methods if you want to do a polling wait in the same/single scenario.
Method 1 — difficulty level: Easy
The simplest solution would be to use a Sleep module to wait out 5 minutes (or the longest period that the external service takes).
You could even use more than one, if you have a Make subscription (free tier max 5 minutes per scenario run).
Method 2 — difficulty level: ???
This other method allows you to check multiple times at shorter intervals, because you “throw” an error to break from the repeater and end the scenario when successful/completed.
The secret is in the success check filter, the error handler, and the commit directive.
Hope this helps!
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!