Events.NewEvent
---------------

Creates a new event.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.NewEvent" ) ### Parameters

none

### Result

Returns event ID or error.

### Description

Creates a new event.  
### Examples

Create event:

 Set Variable \[$c ; Value:MBS ("Events.NewEvent")\]  
Set Variable \[$r ; Value:MBS ("[Events.Item.SetTitle](EventsItemSetTitle.md)"; $c ; CalendarTest::ItemTitle )\]  
Set Variable \[$r ; Value:MBS ("[Events.Item.SetNotes](EventsItemSetNotes.md)"; $c ; CalendarTest::ItemNotes )\]  
Set Variable \[$r ; Value:MBS ("[Events.Item.SetURL](EventsItemSetURL.md)"; $c ; CalendarTest::ItemURL )\]  
Set Variable \[$r ; Value:MBS ("[Events.Item.SetLocation](EventsItemSetLocation.md)"; $c ;CalendarTest::ItemLocation )\]  
Set Variable \[$r ; Value:MBS ("[Events.Event.SetStartDate](EventsEventSetStartDate.md)"; $c ; CalendarTest::ItemStartDate )\]  
Set Variable \[$r ; Value:MBS ("[Events.Event.SetEndDate](EventsEventSetEndDate.md)"; $c ; CalendarTest::ItemEndDate )\]  
Set Variable \[$r ; Value:MBS ("[Events.Event.SetAllDay](EventsEventSetAllDay.md)"; $c ;CalendarTest::ItemAllDay )\]  
Set Variable \[$r ; Value:MBS ("[Events.Event.SetAvailability](EventsEventSetAvailability.md)"; $c ; "busy")\]  
Set Variable \[$r ; Value:MBS ("[Events.Item.SetCalendar](EventsItemSetCalendar.md)"; $c ; CalendarTest::CalendarUID )\]  
Set Variable \[$r ; Value:MBS ("[Events.SaveEvent](EventsSaveEvent.md)"; $c ; "this"; 1 )\]  
Set Field \[CalendarTest::ItemUID ; MBS ("[Events.Item.CalendarItemIdentifier](EventsItemCalendarItemIdentifier.md)"; $c )\]  
### See also

- [Events.Event.SetAllDay](EventsEventSetAllDay.md)
- [Events.Event.SetAvailability](EventsEventSetAvailability.md)
- [Events.Event.SetEndDate](EventsEventSetEndDate.md)
- [Events.Event.SetStartDate](EventsEventSetStartDate.md)
- [Events.Item.SetLocation](EventsItemSetLocation.md)
- [Events.Item.SetNotes](EventsItemSetNotes.md)
- [Events.Item.SetTimeZone](EventsItemSetTimeZone.md)
- [Events.Item.SetURL](EventsItemSetURL.md)
- [Events.SaveEvent](EventsSaveEvent.md)
- [FSEvents.NextEvent](FSEventsNextEvent.md)

### Example Databases

- [Mac and iOS/Events/Events Create Event](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Create%20Event.shtml#1ScriptAnchor_)
- [Mac and iOS/Events/Events Sync](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Events%20Sync.shtml#5ScriptAnchor_)

### Blog Entries

- [MBS FileMaker iOS SDK Extension 0.2](https://www.mbsplugins.de/archive/2016-06-22/MBS_FileMaker_iOS_SDK_Extensio/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker iOS SDK Extension 0.1](https://www.mbsplugins.de/archive/2016-05-04/MBS_FileMaker_iOS_SDK_Extensio/monkeybreadsoftware_blog_filemaker)
- [FileMaker and Calendar (iCal)](https://www.mbsplugins.de/archive/2016-04-23/FileMaker_and_Calendar_(iCal)/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 3/2020, Seite 39](https://filemaker-magazin.de/neuigkeit/4096-Appetithappen-FMM_202003)

This function checks for a license.

Created 10th March 2016 , last changed 24th March 2016

  
[Events.NewCalendar](EventsNewCalendar.md) - [Events.NewReminder](EventsNewReminder.md)

[HTML Version](EventsNewEvent.shtml)