Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam MS-600 Topic 5 Question 59 Discussion

Actual exam question for Microsoft's MS-600 exam
Question #: 59
Topic #: 5
[All MS-600 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

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

.getClient()

.then((client: MSGraphClient): void => {

// get information about the current user from the Microsoft Graph

client

.api('/me')

.get((error, response: any, rawResponse?: any) => {

// handle the response

});

});


https://www.c-sharpcorner.com/article/show-outlook-messages-from-microsoft-graph-in-spfx-client-side-web-part/

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel