Data Providers
REST

MS Graph

2min

The MS Graph examples below use the User, Calendar, Mail, Insights, and To-do tasks resource types to create a powerful

 apps with everything you need in one app. The REST data provider requires you to configure OAuth for MS Graph and the accessToken is used in the

function.



Document image



The following examples and code snippets are provided:





Provides sample code to get a user's profile information from Microsoft Graph. It includes a code sample for updating a user's profile picture in Microsoft Graph.

Provides sample code to get a list of the user's calendars and renders a calendar in a schedule view on a

. It includes a code sample on adding calendar entries to a user's Microsoft 365 calendar in Exchange.

Graph Mail

Provides sample code to get a list of emails for a user and displays the emails in a list

. Press on an email to view the content of the email.

Provides sample code to get a list of To-do tasks for a user and displays the tasks in a list

.

provides sample code to get insights that include a list of documents trending around the user and displays the list in a list

.