Get Calendar List
Scenario
Get a list of available calendars for a user in Microsoft Graph using a GET REST function and displaying the list of calendars in a list jig.
Resource links:
List calendars - MS Graph documentation
Required OAuth scope (least to most privilege):
Calendars.Read Calendars.Read.Shared Calendars.ReadWrite
Related Sample
Pressing on the Calendar will navigate to Get Event List and display the events in the selected calendar.
Press on an item in the event list and view the event's details using the Get Event Item.

Examples and code snippets
When using the code and samples in this topic, remember that they are designed to function as part of a comprehensive solution. To fully benefit from the intended functionality and ensure compatibility, it is recommended that you use the entire solution rather than selecting individual components in isolation. Alternatively, you can use these samples as a guide to understand the underlying concepts and MS Graph API, which can help you integrate similar solutions into your projects more effectively. The entire MS Graph solution is available on GitHub.
General
name: ms-graph-demonstrator
title: MS Graph Demonstrator
description: A sample solution that uses the Microsoft Graph API. You can deploy and use this solution without any additional configuration.
category: business
home:
jigId: calendar-summary
icon: home-apps-logo
jigId: next-meeting
when: |
[email protected]=null? false:true
icon: meeting-remote
onFocus:
type: action.action-list
options:
isSequential: true
actions:
- type: action.sync-entities
options:
provider: DATA_PROVIDER_REST
entities:
- entity: next-week-calendar-events
function: get-calendar-events-next-week
parameters:
accessToken: microsoft.OAuth
startdatetime: =$fromMillis($millis())
enddatetime: =$fromMillis($millis()+604800000)
- entity: calendars
function: get-calendar-list
parameters:
accessToken: microsoft.OAuth
onRefresh:
type: action.action-list
options:
isSequential: true
actions:
- type: action.sync-entities
options:
provider: DATA_PROVIDER_REST
entities:
- entity: next-week-calendar-events
function: get-calendar-events-next-week
parameters:
accessToken: microsoft.OAuth
startdatetime: =$fromMillis($millis())
enddatetime: =$fromMillis($millis()+604800000)
- entity: calendars
function: get-calendar-list
parameters:
accessToken: microsoft.OAuth
Functions
MS Graph Calendar function in GitHub.
Jigs
MS Graph Calendar jig in GitHub.
See Also
Last updated
Was this helpful?