Hi at all,
Is there an option serching for Google-Calendar-Events by using the eventID and get a feedback if they exist or not? If not exist, i woud delete this event out of my database. With “Get an Event”, if the Event doesn`t exist I just run into an error without having any option.
Is there an other option without running into an error?
Yes - you can handle this with an error handler on the “Google Calendar > Get an event” module.
When an event ID doesn’t exist, Google Calendar returns 404 Not Found. Add an error-handler route to that module and filter it to only catch this case.
On that error route do whatever you need (e.g., delete the record from your DB, mark it as removed, log it), then end the route with Resume so the scenario continues without failing.
On the success route (normal output) proceed as usual when the event exists.