Create a calendar import feature to manage events from one location, use preferred calendar apps, and save time from manually maintaining events or meetings in separate calendars.
Note Using the CalendarService API to create contact-based features works only in the mobile
app, and not on mobile or desktop web.
You can develop and implement a Lightning web component with a calendar import feature using the CalendarService API. A calendar import feature requires the use of the mobile device calendar. The user must grant your app access to the calendar.
- Import CalendarService into your component definition.
- Test to make sure CalendarService is available before you call calendar-related functions.
- Use the
getCalendar()
For complete details, see Use Mobile Device Features in Mobile Apps in the Lightning Web Components Developer Guide.