This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which object does a SharePoint Framework web part use to send requests to the SharePoint REST API?
The spHttpClient object on the web part's context (this.context.spHttpClient).
spHttpClient
this.context.spHttpClient
The spRestClient object on the web part's context (this.context.spRestClient).
spRestClient
this.context.spRestClient
The spHttpClient object on the web part's base class (this.spHttpClient).
this.spHttpClient
Which methods on the spHttpClient object submit write operations to the SharePoint REST API?
The post() or fetch() methods.
post()
fetch()
The create() or update() methods.
create()
update()
The write() or save() methods.
write()
save()
How does the SharePoint Framework API return the response from a SharePoint REST API request?
As a JavaScript promise returned from the request method.
As an object passed to a callback supplied as the last argument.
As a synchronous object returned directly by the request method.
Which APIs can a developer use to upload files to a SharePoint document library from a SharePoint Framework solution?
Either the SharePoint REST API or the Microsoft Graph API.
The SharePoint REST API, which is the only supported option.
The Microsoft Graph API, which is the only supported option.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?