Question

We have a requirement to convert one of the existing provider hosted app functionality to spfx webpart.

The provider hosted app implemented using App only calls to access other site collection in the tenant.

Now I want to know is there any way in SPFx webpart to access other site collections?

Any suggestions or reference links are appreciated.

Était-ce utile?

La solution

I haven't done it, but it is possible. You need to use SPHttpClientConfigurations instead of SPHttpClient. There is an example of using it in this answer to another question: SPFx R.C. post method, SPHttpClient.configurations.v1 undefined exception

Ref: Adding Items to a list in another sitecollection :- SharePoint Framework (SPFx) Webpart

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top