Calendar.SaveEvent
------------------

Saves the event.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Calendar](component_Calendar.md) | [3.4](newinversion34.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Calendar.SaveEvent"; EventRef ) 

**MBS**( **"Calendar.SaveEvent";** /\* Saves the event. \*/  
**$EventRef**) /\* The id of the event to query. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EventRef | The id of the event to query. | $eventRef |

### Result

Returns OK or error.

### Description

Saves the event.  
### Examples

Creates new event:

 Set Variable \[ $c ; Value: MBS ("[Calendar.NewEvent](CalendarNewEvent.md)"); \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetTitle](CalendarItemSetTitle.md)"; $c ; CalendarTest::ItemTitle ) \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetNotes](CalendarItemSetNotes.md)"; $c ; CalendarTest::ItemNotes ) \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetURL](CalendarItemSetURL.md)"; $c ; CalendarTest::ItemURL ) \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetLocation](CalendarItemSetLocation.md)"; $c ;CalendarTest::ItemLocation ) \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetStartDate](CalendarItemSetStartDate.md)"; $c ; CalendarTest::ItemStartDate ) \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetEndDate](CalendarItemSetEndDate.md)"; $c ; CalendarTest::ItemEndDate ) \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetAllDay](CalendarItemSetAllDay.md)"; $c ;CalendarTest::ItemAllDay ) \]  
Set Variable \[ $r ; Value: MBS ("[Calendar.Item.SetCalendar](CalendarItemSetCalendar.md)"; $c ; CalendarTest::CalendarUID ) \]  
Set Variable \[ $r ; Value: MBS ("Calendar.SaveEvent"; $c ) \]  
Create a new reminder:

 $id = MBS ("[Calendar.NewReminder](CalendarNewReminder.md)")  
$r = MBS ( "[Calendar.Item.SetDueDate](CalendarItemSetDueDate.md)"; $id ; Get(CurrentHostTimeStamp) )  
$r = MBS ( "[Calendar.Item.SetTitle](CalendarItemSetTitle.md)"; $id ; "Test" )  
$r = MBS ( "[Calendar.Item.SetCalendar](CalendarItemSetCalendar.md)"; $id ; "Erinnerungen" )  
$r = MBS ( "[Calendar.SaveReminder](CalendarSaveReminder.md)"; $id )  
### See also

- [Calendar.Item.SetAllDay](CalendarItemSetAllDay.md)
- [Calendar.Item.SetCalendar](CalendarItemSetCalendar.md)
- [Calendar.Item.SetLocation](CalendarItemSetLocation.md)
- [Calendar.Item.SetNotes](CalendarItemSetNotes.md)
- [Calendar.Item.SetStartDate](CalendarItemSetStartDate.md)
- [Calendar.Item.SetURL](CalendarItemSetURL.md)
- [Calendar.NewEvent](CalendarNewEvent.md)
- [Calendar.RemoveEvent](CalendarRemoveEvent.md)
- [Calendar.SaveReminder](CalendarSaveReminder.md)
- [Calendar.SelectEvent](CalendarSelectEvent.md)

### Example Databases

- [Mac and iOS/Events/Calendar/Calendar Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Calendar/Calendar%20Test.shtml#4ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Advent calendar - Door 16 - Add Entries In Apple Calendar](https://www.mbsplugins.de/archive/2024-12-16/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2014, Seite 32 bis 33](https://filemaker-magazin.de/neuigkeit/3720-Appetithappen-FMM_201401)

This function checks for a license.

Created 18th August 2014 , last changed 25th February 2026

  
[Calendar.SaveCalendar](CalendarSaveCalendar.md) - [Calendar.SaveReminder](CalendarSaveReminder.md)

[HTML Version](CalendarSaveEvent.shtml)