nerdexam
Microsoft

MS-600 · Question #177

You need to build a SharePoint Framework (SPFx) web part that will display the contents of a user's Microsoft Exchange Online inbox. The solution must minimize development effort. Which object…

The correct answer is C. MSGraphClient. MSGraphClient is a new HTTP client introduced in SharePoint Framework v1.6.0 that simplifies connecting to the Microsoft Graph inside SharePoint Framework solutions. With MS Graph we use MSGraphClient to get information about the current user; this.context.msGraphClientFactory…

Extend and customize Microsoft 365 with SharePoint Framework

Question

You need to build a SharePoint Framework (SPFx) web part that will display the contents of a user's Microsoft Exchange Online inbox. The solution must minimize development effort. Which object should you include in the solution?

Options

  • ASPHttpClient
  • Bthe JavaScript API for Exchange Web Services (EWS)
  • CMSGraphClient
  • DAadHttpClient

How the community answered

(59 responses)
  • A
    7% (4)
  • B
    3% (2)
  • C
    73% (43)
  • D
    17% (10)

Explanation

MSGraphClient is a new HTTP client introduced in SharePoint Framework v1.6.0 that simplifies connecting to the Microsoft Graph inside SharePoint Framework solutions. With MS Graph we use MSGraphClient to get information about the current user; this.context.msGraphClientFactory .then((client: MSGraphClient): void => { // get information about the current user from the Microsoft Graph client .get((error, response: any, rawResponse?: any) => { // handle the response client-side-web-part/

Topics

#SPFx#MSGraphClient#Exchange Online#mail inbox

Community Discussion

No community discussion yet for this question.

Full MS-600 Practice