Tag: SPFx

tags

Override SPFx context properties during Playwright E2E tests

While creating new E2E tests for a SharePoint Framework solution, I wanted to test the solution with different permission sets. Usually, when you run your tests, you start these up with a user with the required permissions to run the tests. Instead of creating a new user with different permissions or different sites/pages to perform the tests, I looked into the possibility of overriding the context properties of SPFx.

Read more

Fix admin consent for SharePoint token retrieval flows in your SPFx solution

There have been a couple of changes in SharePoint recently related to retrieving access tokens for your SharePoint Framework solutions. One of the changes is that MSAL V3 now uses the /_api/Microsoft.SharePoint.Internal.ClientSideComponent.Token.AcquireOBOToken API to retrieve the access token. Typically, this API was only used when loading your solution from Microsoft Teams, but it will now also be used when loading your solution from SharePoint.

Read more

Approve a multi-tenant webApiPermissionRequests scope for your SPFx solution

It has been a long time ago since I wrote about SharePoint. Lately, I got into a Viva Connections project where I had to approve a multi-tenant webApiPermissionRequests scope and ran into an issue where it was impossible to approve the permission scope. Show image Failed permission approval The error that gets returned is The requested permission isn't valid.

Read more

Retrieving the image its focal point of a SharePoint Modern page

On SharePoint modern pages, you can set the focal point of the header image. Having this kind of control is excellent for creating compelling pages. Header image with focal point What if you also want to make use of the same focal point in your roll-ups? Luckily this is also possible, and it depends a bit on how you retrieve the data.

Read more

How to get the hub site ID in SharePoint Framework

When setting up a portal on SharePoint Online these days, you most likely will do it with a hub site driven approach. With hub sites, you have one root site collection, which can be seen as the parent, and all children are associated with it. Show image Hub site association When building solutions for your hub sites, you probably need to know on which hub site your solution is currently running.

Read more
Back to top