Events.NewCalendar
------------------

Creates a new calendar that may contain the given entity type.

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

MBS( "Events.NewCalendar"; entityType ) 

**MBS**( **"Events.NewCalendar";** /\* Creates a new calendar that may contain the given entity type. \*/  
**$entityType**) /\* The entity type that this calendar may support.  
Event or Remindere.g. "Event" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| entityType | The entity type that this calendar may support.   Event or Reminder | "Event" |

### Result

Returns calendar reference number or error.

### Description

Creates a new calendar that may contain the given entity type.  
You can only create calendars that accept either reminders or events via our API. However, other servers might allow mixing the two (though it is not common).  
### See also

- [Events.Calendars](EventsCalendars.md)
- [Events.NewReminder](EventsNewReminder.md)
- [Events.RemoveCalendar](EventsRemoveCalendar.md)
- [Events.SaveCalendar](EventsSaveCalendar.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#4ScriptAnchor_)

This function checks for a license.

Created 10th March 2016 , last changed 12nd March 2016

  
[Events.NewAlarmWithRelativeOffset](EventsNewAlarmWithRelativeOffset.md) - [Events.NewEvent](EventsNewEvent.md)

[HTML Version](EventsNewCalendar.shtml)