Skip to main content
Best answer

Webhook step triggering multiple times for same data

  • September 4, 2021
  • 1 reply
  • 574 views

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.

Best answer by SamBBest answer by SamB

Hi and welcome to the Community, @Venkata Ramana Murthy

It sounds like you could to try keeping a record of the emails that are sent in a spreadsheet app like Google Sheets.

You can use a Google Sheets search action to look for an existing row (and add one if one isn’t found). Then you’d use a Filter step to stop the Zap from sending out an email if an existing row was found - indicating that an email had already been sent. 

This process is described in more detail in the article here:


Hopefully this will help to prevent duplicate emails being sent. :)

View original
Did this topic help you find an answer to your question?
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

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7442 replies
  • Answer
  • September 7, 2021

Hi and welcome to the Community, @Venkata Ramana Murthy

It sounds like you could to try keeping a record of the emails that are sent in a spreadsheet app like Google Sheets.

You can use a Google Sheets search action to look for an existing row (and add one if one isn’t found). Then you’d use a Filter step to stop the Zap from sending out an email if an existing row was found - indicating that an email had already been sent. 

This process is described in more detail in the article here:


Hopefully this will help to prevent duplicate emails being sent. :)