Events.Calendar.GetSource
-------------------------

Query the source ID for this calendar.

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

MBS( "Events.Calendar.GetSource"; EKCalendar ) 

**MBS**( **"Events.Calendar.GetSource";** /\* Query the source ID for this calendar. \*/  
**$EKCalendar**) /\* The identifier or name of the calendar.e.g. $calendar \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKCalendar | The identifier or name of the calendar. | $calendar |

### Result

Returns source reference number or error.

### Description

Query the source ID for this calendar.  
The source representing the 'account' this calendar belongs to.  
This is only settable when initially creating a calendar and then effectively read-only after that. That is, you can create a calendar, but you cannot move it to another source.  
  
See [Events.Sources](EventsSources.md) to get a list of all sources.  
### Examples

Query source title for calendar:

 MBS ( "[Events.Source.Title](EventsSourceTitle.md)"; MBS ( "Events.Calendar.GetSource"; "Firma" ))  
### See also

- [Events.Calendar.GetColor](EventsCalendarGetColor.md)
- [Events.Calendar.GetTitle](EventsCalendarGetTitle.md)
- [Events.Calendar.GetType](EventsCalendarGetType.md)
- [Events.Calendar.SetColor](EventsCalendarSetColor.md)
- [Events.Calendar.SetSource](EventsCalendarSetSource.md)
- [Events.Calendar.SetTitle](EventsCalendarSetTitle.md)
- [Events.Source.Title](EventsSourceTitle.md)
- [Events.Sources](EventsSources.md)

### Example Databases

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

### FileMaker Magazin

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

This function checks for a license.

Created 10th March 2016 , last changed 9th November 2021

  
[Events.Calendar.GetColor](EventsCalendarGetColor.md) - [Events.Calendar.GetTitle](EventsCalendarGetTitle.md)

[HTML Version](EventsCalendarGetSource.shtml)