Hi,
I have created a ZAP with 2 steps. The first step pushes data on new record creation in Infinity, into a google sheet.
In this google sheet, I have created and deployed some functions in google apps script as a webhook
The second step in ZAP invokes this webhook, which basically sends an email with an attachment.
Now my problem is, although the firsts tep is executing perfectly, i.e. only 1 entry created in google sheet per record in Infinity, the second step i.e. the webhook call seems to be triggering multiple times at the same instant and multiple emails are getting sent out for the same record in the google sheet.
Would really appreciate suggestions on how I can handle this.. thank you!
PS: In the google script code I have set a flag that checks for only records with flag as N before the function runs and gets updated to Y after the function runs (email is sent). But even then, the email is getting sent multiple times.