Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Returns calendars that support a given entity type.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Events | 6.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Type | Which entity type you like to check: Event or Reminder. Default is Event. |
"Event" | |
AsJSON | Available in MBS FileMaker Plugin 13.4 or newer. Pass 1 to return result as JSON. |
Optional |
Returns list of calendar identifiers or error.
Get list of all calendars for events:
MBS( "Events.calendars" ; "Events")
Get list of all calendars for reminders:
MBS( "Events.calendars" ; "Reminder")
Query list of all calendar names:
While(
[
names = "";
// query list of Calendar IDs
list = MBS( "Events.Calendars"; "Event" );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
id = GetValue(list; index);
// query name for each ID
name = MBS( "Events.Calendar.GetTitle"; id);
names = names & name & ¶;
index = index + 1
] ;
// return all the names
names )
Example result:
Family
Work
Birthdays
Query as JSON:
MBS( "Events.Calendars"; "Reminder"; 1)
Example result:
[
{
"subscribed" : false,
"source" : {
"sourceTypeText" : "CalDAV",
"title" : "Mac.com",
"sourceIdentifier" : "780DE199-35C3-4720-9FF0-D5CB37A4B7E6",
"isDelegate" : false,
"sourceType" : 2
},
"title" : "Reminders",
"allowedEntityTypes" : 2,
"supportedEventAvailabilities" : 0,
"allowsContentModifications" : true,
"type" : 1,
"immutable" : false,
"calendarIdentifier" : "F01661A4-E434-4F9D-79CD-C7395B34D69C",
"typeText" : "CalDAV"
},
{
"subscribed" : false,
"source" : {
"sourceTypeText" : "CalDAV",
"title" : "Mac.com",
"sourceIdentifier" : "780DE199-35C3-4720-9FF0-D5CB37A4B7E6",
"isDelegate" : false,
"sourceType" : 2
},
"title" : "Family",
"allowedEntityTypes" : 2,
"supportedEventAvailabilities" : 0,
"allowsContentModifications" : true,
"type" : 1,
"immutable" : false,
"calendarIdentifier" : "8A134D40-6DE4-4F69-A4D4-06CB897EB173",
"typeText" : "CalDAV"
}
]
This function checks for a license.
Created 10th March 2016, last changed 20th July 2023
Events.CalendarItemsWithExternalIdentifier - Events.ClearNotification