Introduction

Completed

By using Microsoft Graph, you can show emails for the current user in your JavaScript app. To help users quickly glance over the messages, you can retrieve them in pages. What's more, to ensure that your app is fast, you can load only the necessary data from Microsoft Graph.

Scenario

Microsoft Graph is the API to access data stored in Microsoft 365. Using the Microsoft Graph SDK and the Microsoft Authentication Library, you can let users sign in to your app with their Microsoft 365 account and show data from Microsoft 365 in your app.

Suppose you want to build a web app that lets users quickly access their latest emails to see who they were communicating with recently. You'll build an app that lets people sign in with their Microsoft 365 account. After they're signed in, you'll retrieve their recent emails by using Microsoft Graph and display them directly in the app.

Prerequisites

Learning objectives

After completing this module, you'll be able to:

  • Configure a JavaScript app to retrieve emails using Microsoft Graph.
  • Retrieve a user's emails from Microsoft Graph.
  • Break large datasets from Microsoft Graph into pages.