Posts

Showing posts from February, 2019

Delete Pending API Permission Requests

Let's say you have a lot of pending API permission requests on your tenant and you want to delete them all. On your tenant's SharePoint Admin portal you can do it but there are two problems: a) You have to do it manually, one by one. b) If you have more than 100 pending requests, you only have access to the first 100. Everytime you delete one request, you have to refresh the page to have access to newer requests. Let's say you have deployed several times a WebPart and you have more than 1000 pending requests. That's a big problem! A fast way to solve it is to use a simple PowerShell script. Delete All Pending Requests $Url = Read-Host -Prompt 'Input your tenant admin URL (e.g. https://mytenant-admin.sharepoint.com)' Connect-SPOService -Url $Url do{     $requests = Get-SPOTenantServicePrincipalPermissionRequests     foreach ($req in $requests ){         if ($req -ne $null)         {             Deny-SPOTenantServicePrincipalPermissionRequest -

Build a custom control for the Property Pane

In this article, I create a modular and reusable control for the Property Pane. I don't use react but, if you want to use it, the approach is similar. In the example, I build a number picker component. Read the tutorial  here .