SharePoint Framework allows you to create a library component type of project that you can use to bundle all your shared resources and add as a dependency to your other projects. Once deployed, the other projects will consume the shared resources from the library component.
Modern SharePoint sites on standard release will soon receive an update to add a search box to the top Office 365 bar. This allows you to search by default in the current location, like a site or a document library. You can then configure the site to redirect user's search queries to a custom search page and you can use the amazing PnP Modern Search web parts to create a great search experience. But what if you want to pass the context of the current location to the custom search page and keep searching only on that location by default?
If you have SharePoint managed metadata terms being used in document libraries and you decide to rename the label of a term, you can easily do so in the term store and wait for the change to propagate to your documents. But what if you want to update all documents that use a specific term to a different term that already exists? The following script will to the job for you.
Power Automate and Azure Logic Apps are great to use as automation tools for processes that include SharePoint data. Unfortunately, they also seem to suffer from some limitations on large lists/libraries which can be quite hard to troubleshoot. On this blog post, I describe the issue that I have recently experienced and how it can be quickly resolved.
When a document or folder is deleted in SharePoint, it goes to the first-stage (site) recycle bin. After some time, it is moved to the second-stage recycle bin where it stays for another period before being completely deleted. If you are running a script to delete a very large number of documents, you may consider sending the items straight to the second-level recycle bin. This will prevent "flooding" the first-stage recycle bin with items, which would make the recycle bin hard to use for manually restoring deleted items.
If you try to approve API access requests in SharePoint online and get a generic error similar to the below, just stick to the first IT rule: "turn it off and on again"
When using the PnP TaxonomyPicker reusable control to let the user select values for a managed metadata list field in SharePoint, you have to convert that selection into an object that you can then pass to the REST api when updating the field value. The following function does exactly that.
A client recently asked me to create an advanced version of the default "Copy to" and "Cove to" SharePoint capabilities available on every document library. This blog post will cover the main decisions, challenges and tools that I used to achieve this.
The latest release of #PnPjs contains 4 new methods that allow you to copy and move, #SharePoint files and folders, to a different folder on the same or a different site collection. And they are incredibly fast!
On the 1st of September, I opened my inbox and found a very pleasant surprise: I had been awarded Microsoft MVP for Office Development! This post covers some of the background, things that (in my opinion) led to the award and also some personal thoughts about the programme. Hope you find the post interesting.