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…
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)- A7% (4)
- B3% (2)
- C73% (43)
- D17% (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
Community Discussion
No community discussion yet for this question.