How to delete a “locked” SharePoint Library

Just came across this challenge and I thought I'll document this. Anyway the challenge is that some of the libraries and lists in SharePoint both online and on-premises might get "locked" for deletion, meaning you cannot delete them by any means, this is particullary through for "Record libraries". If you need to remove a "locked" …

Continue reading How to delete a “locked” SharePoint Library

SharePoint 101 – Importing Excel data to SharePoint Online List – CSOM

Business case: We have a lot of data in Excel files today, and we want to convert this to use SharePoint Online List, for obvious reasons like integration with @Flow and @PowerApps. With the right steps, the script below using SCOM will help you achieve this. Steps: In SharePoint Online Create a new List with …

Continue reading SharePoint 101 – Importing Excel data to SharePoint Online List – CSOM

CSOM error Exception calling “ExecuteQuery”

If you are trying to run CSOM against SharePoint Online and gets the error below Exception calling "ExecuteQuery" with "0" argument(s): "Cannot contact web site 'https://tenant.sharepoint.com/' or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The cause of this issue:  LegacyAuthProtocolsEnabled By default this property should be set …

Continue reading CSOM error Exception calling “ExecuteQuery”