Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Events.defaultCalendarForNewReminders

Returns the calendar that reminders should be added to by default.

Component Version macOS Windows Linux Server iOS SDK
Events 6.2 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "Events.defaultCalendarForNewReminders" { ; AsJSON } )   More

Parameters

Parameter Description Example Flags
AsJSON Available in MBS FileMaker Plugin 13.4 or newer.
Pass 1 to return result as JSON.
Optional

Result

Returns calendar identifier or error.

Description

Returns the calendar that reminders should be added to by default.

Examples

Query title of calendar for new reminders:

MBS("Events.Calendar.GetTitle"; MBS( "Events.defaultCalendarForNewReminders" ))

Get calendar:

Set Variable [$calendar; Value:Events Create Reminder::Calendar]
If [IsEmpty(Events Create Reminder::Calendar)]
    Set Variable [$calendar; Value:MBS( "Events.defaultCalendarForNewReminders" )]
End If

Query calendar with JSON:

MBS( "Events.defaultCalendarForNewReminders"; 1)

Example result:
{ "subscribed" : false, "source" : { "sourceTypeText" : "CalDAV", "title" : "Mac.com", "sourceIdentifier" : "780DE199-35C3-4720-9FF0-D5CB37A4B7E6", "isDelegate" : false, "sourceType" : 2 }, "title" : "Privat", "allowedEntityTypes" : 2, "supportedEventAvailabilities" : 0, "allowsContentModifications" : true, "type" : 1, "immutable" : false, "calendarIdentifier" : "1A745C43-79A2-43CF-A9BC-CDE6CFB7B469", "typeText" : "CalDAV" }

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 10th March 2016, last changed 20th July 2023


Events.defaultCalendarForNewEvents - FM.AllowFileDragDrop