Best answer

Can I loop the application until a condition occurs?

  • 3 November 2022
  • 1 reply
  • 320 views

Userlevel 1

Can I loop the application until a condition occurs?

For example: I check whether all of the contacts answered the letter (by adding it through a trigger in Googlesheet) every hour.

If not added - send sms, pause hour, check again, send sms,

pause hour, check again, send sms,

pause hour, check again, send sms,

pause hour, check again, send sms ...

icon

Best answer by RALaBarge 3 November 2022, 14:27

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 4
Badge +7

Hey there @SanyaCLAUSS!  You *might* be able to get close by using multiple Zaps.  Here is my idea, let me know what you think:

 


Zap 1: Trigger event to send the initial data into your Google Sheet => Google Sheet New Row action


Zap 2: Google Sheets New Row trigger (reading from Zap 1 sheet) => Delay by Zapier (1 hour) => Find Google Sheets Row action => Paths by Zapier => ...

Branch A: User Has Answered => Perform “Has Answered” actions

Branch B: User has not answered => Send SMS => Webhook by Zapier action (Send to Zap 3)


Zap 3: Webhook by Zapier trigger (catch from Zap 2/3) => Delay by Zapier (1 hour) => Google Sheet Find Row action => Paths by Zapier => …

Branch A: User Has Answered => Perform “Has Answered” actions

Branch B: User has not answered => Send SMS => Webhook by Zapier action (Send to Zap 3)


 

Zap 3 will continue to check once an hour until the user has answered the questions or will loop until they do or the Zap is turned off.  After writing this all out, I am pretty sure you could do this but do give it a shot and let us know how it goes! =)