Skip to main content

I have a Zap that puts event attendees resulting from a web hook in a master Google sheet:

 

The web hook (on a Wordpress site) fires 24h before an event and sends all attendees to Zapier. Important: it doesn’t send them all in one batch, but one by one with a few seconds/minutes between each attendee:


​​​​​

So far, so good: all attendees arrive in the master Google sheet:

 

You’ll see that there is a column ‘Event’ where the event names are stored. 

What I want to do now is generate a new Google sheet with only the attendees for the event that was last added. I succeeded in doing that, based on a ‘New spreadsheet row’ trigger:

 

 

What this Zap does:

  • It looks for new rows in the master Google sheet
  • Then it looks up all rows which share the same name in the ‘Event’ column as the last added row, through a dynamic value from the trigger
  • Then it creates a Google sheet, looks it up in my Drive and inserts the looked up rows

The problem? Since the web hook from the first zap adds the attendees one by one, the second zap fires every time an attendee is added. So I get as many Google sheets as added attendees, with only the last one containing all attendees.

How do I modify this Zap so I only get one Google sheet? If i select the Google Drive trigger ‘Updated file’ for the second Zap, I cannot extract the dynamic value of the last added name in the ‘Event’ column.

Adding a delay didn’t help either, since the second Zap keeps firing for each attendee …

Any help would be appreciated, thanks so much!

Hey there @Stefaan👋

How do I modify this Zap so I only get one Google sheet? If i select the Google Drive trigger ‘Updated file’ for the second Zap, I cannot extract the dynamic value of the last added name in the ‘Event’ column.

Perhaps you could use a Find a File (Google Drive) action to check whether a spreadsheet has already been created before proceeding with steps 3 to 6 of the Zap? With that approach you’d also need to use a Filter to check if the Zap Search Was Found Status field that’s output by the Find a File action was false - this would indicate that no spreadsheet was found. 

Can you give that a try and let us know if that does the trick?


Hey there @Stefaan👋

How do I modify this Zap so I only get one Google sheet? If i select the Google Drive trigger ‘Updated file’ for the second Zap, I cannot extract the dynamic value of the last added name in the ‘Event’ column.

Perhaps you could use a Find a File (Google Drive) action to check whether a spreadsheet has already been created before proceeding with steps 3 to 6 of the Zap? With that approach you’d also need to use a Filter to check if the Zap Search Was Found Status field that’s output by the Find a File action was false - this would indicate that no spreadsheet was found. 

Can you give that a try and let us know if that does the trick?

This method must need to try! If its not work let us know
Thanks


Hi @Stefaan 

Try these Zap steps:

  1. Trigger: GSheets - New Row
  2. Action: Delay - After Queue
  3. Action: GDrive - Find File
  4. Action: Filter
  5. Action: GSheets - Create Spreadsheet

Hi @Stefaan 👋

Just wanted to circle back in here to ask how things went - were you able to get it sorted in the end?

If you’re still running into any issues please do let us know, happy to assist further! 🙂


Reply