I'm a new user at callin.io, and I've already set up a basic scenario structure as shown below:
My goal is to have the repeater stop and proceed to the next step when data is present in Google Sheets (Column B). However, if the data is not present, I want it to loop the sleep module (e.g., for 15 seconds) for 10 iterations, as defined in the repeater.
When I tested my scenario, it continued looping even when the data was present. The repeater returned my data (10 iterations), but it didn't stop as intended. How can I resolve this?
In the initial variable set, I set stopRepeater = false
. Within the repeater, I applied a filter where stopRepeater == false
. Then, in the first true router, I set stopRepeater = true
. However, the data for the first variable (outside the repeater) is not updating.
How can I achieve my desired scenario behavior?
Hi there, If I understand correctly:
Your filter after the repeater module is referencing the stopRepeater value, but you'll need to use the ‘Get variable’ module just before this filter (between the repeater and search in sheet) to actually retrieve the variable. Otherwise, it's just accessing the variable you declared in the very first module.
If the data is present: the Set Variable module will be activated (which sets stopRepeater=1, as I understand it?) and it’ll stop the scenario after it has finished this iteration.
If the data is not present: it’ll go to sleep and proceed with more iteration(s):
- Note: if your search row doesn't have anything dependent on “Repeater”, the data won't change, and thus it will continue to sleep until it reaches the maximum number of repetitions you've set in the ‘repeater’.
hello
ahh i see that’s why the repeater still continuing repeat because i didn’t call the variable on the true router. i asked ChatGPT and the AI from callin.io but still cannot solve this for 2 days. thank you for your information. i tried it just now and it works !