I’m using an API to pull back a simple list of events, there are three options
Event is already on the calender, I want to find and update
Event doesn’t exist I need to create it
Event has been canceled, I want to find it a delete it
However, if use the “Find Google Event” function, if it doesn’t find the event. I’m searching on IDs that I am putting into the event name, the whole zaps just breaks, there is no way to move on.
Best answer by SamB
Hi there @oasis_seb!
If you want the Zap to continue past that Find Event action if no event is found you’d want to set the Should this step be considered a “success” when nothing is found? option to Yes:
Or alternatively, enable the Create Google Calendar Event if it doesn’t exist yet? option to allow it to create an event if one isn’t found:
Either way, that will output a field called either _zap_search_was_found_status or _zap_data_was_found (when creating events that don’t exist option is enabled) which will be false if nothing is found and true if an existing event is found.
I also wanted to note that it appears that it isn’t able to find canceled events:
So, if it’s a canceled event then it will never be able to find the event. In which case it may be worth creating a record of each event in spreadsheet that contains the details for the event like it’s ID and whether it’s canceled or not. Then instead of using the Find Event (Google Calendar) action you’d use a Lookup Spreadsheet Row (Google Sheets) action to search for the event to see if it’s there then carry out the necessary actions in your Zaps accordingly.
Do you think that approach could work?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.
If you want the Zap to continue past that Find Event action if no event is found you’d want to set the Should this step be considered a “success” when nothing is found? option to Yes:
Or alternatively, enable the Create Google Calendar Event if it doesn’t exist yet? option to allow it to create an event if one isn’t found:
Either way, that will output a field called either _zap_search_was_found_status or _zap_data_was_found (when creating events that don’t exist option is enabled) which will be false if nothing is found and true if an existing event is found.
I also wanted to note that it appears that it isn’t able to find canceled events:
So, if it’s a canceled event then it will never be able to find the event. In which case it may be worth creating a record of each event in spreadsheet that contains the details for the event like it’s ID and whether it’s canceled or not. Then instead of using the Find Event (Google Calendar) action you’d use a Lookup Spreadsheet Row (Google Sheets) action to search for the event to see if it’s there then carry out the necessary actions in your Zaps accordingly.