Deleting Events from FileMaker

When you delete an event record in FileMaker, it's important to inform DayBack that the event no longer exists. One way to achieve this is by refreshing the entire calendar, but a more user-friendly approach is to remove only the specific event. This provides a better user experience.

To accomplish this, you can call a script in DayBack to remove just that one event. Follow the technique described in the documentation here. First, create a payload with the event details before deleting the record. Then, pass that payload to DayBack to update the calendar accordingly.

Example Script:

Here's how a simple version of this script would look

Building the $result variable:

And the contents of the $payload variable: