Skip to main content
Version: 4.55

addCalendar

Opens the default calendar of the user's device and shows a pre-filled "add new event" view with the provided data. Depending on the operating system and its version, this could manifest as just an in-app overlay or a complete switch to the calendar app.

note

On Android, this uses an intent mechanism and therefor does not require additional permissions, while on Apple devices, the user is prompted to allow access to the calendar on first execution. See requestPermission to manually request permission beforehand.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)ObjectAdds a new event to the user's calendar with the specified metadata.null

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"endDate" (required)StringThe end time of the calendar entry. ISO 8601 format yyyyMMdd'T'hhmmss .null
"location"StringThe location of the calendar entrynull
"notes"StringThe note added to the calendar entrynull
"startDate" (required)StringThe start time of the calendar entry. ISO 8601 format yyyyMMdd'T'hhmmss .null
"title"StringThe title of the calendar entrynull
"url"StringThe URL that is added to the calendar entry.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Create a calendar entry

Goal: Create a calendar entry including a note and address.

To achieve this the following code can be used:

{
"type": "addCalendar",
"params": {
"title": "Event n° 1",
"notes": "First events of the day!",
"url": "https://www.fabrik19.de/",
"location": "Bahnhofstraße 82-86, 35390 Gießen",
"startDate": "20240501T123000",
"endDate": "20240501T220000"
}
}

The values for the fields startDate and endDate are formatted according to ISO 8601.

Result:

Screencapture of the app showing the results of the sample code from Example 1.
An addCalendar action has been created.