Closed yvesrosius closed 3 months ago
getContextInfo and the SPFX context object are fully different things. The method you are calling is meant to get some information about a site to aid in url resolution and some other details (form digest mostly).
We do not supply the SPFx context, rather consume it. If it is not available, and I do not believe it is in power apps though I have no experience, we can't create it. It is something provided by the SPFx framework. You would likely need to look at the browser setup vs the SPFx setup - as you have done.
Closing this issue as answered. If you have additional questions or we did not answer your question, please open a new issue, ref this issue, and provide any additional details available. Thank you!
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.
What version of PnPjs library you are using
3.x
Minor Version Number
3.24.0
Target environment
Browser App (Hosted external to Microsoft 365 platform)
Additional environment details
PCF component in browser + MSAL (Implicit flow) https://learn.microsoft.com/en-us/power-apps/developer/component-framework/overview https://pnp.github.io/pnpjs/concepts/auth-browser/
Question/Request
Successfully authenticated PnP JS using MSAL (Implicit flow)
This works:
sp.web() .then(web => { console.log(web.Title); })
However, I need a context for a ModernTaxonomyPicker component.
Already tried:
This seems to give me some information, but it does not reflect all information available in context within SPFx.
Returned context: