The Teams Files tab is always empty when we create a new channel. But this can be controlled to include a folder structure or other content that is surfaced in Teams.
Category: PnP
Merge PDF files in SharePoint using an Azure Function
In this article, I will show you how to create an Azure Function to merge PDF files stored in SharePoint. The Function will be a generic service, which receives a list of file paths to merge.
SPFx and modern SharePoint search page for searching the current location
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?
Update metadata on SharePoint documents and folders
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.
SharePoint folder filter SPFx extension
If you use modern SharePoint libraries with large collections of folders, you will likely feel that navigating your way around the folders is no easy task. So I built a "super simple" SharePoint Framework list view command set extension to address this problem
Reset API access in SharePoint online for SPFx solutions
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"
Convert PnP TaxonomyPicker selection to update value
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.
Copy & move SharePoint documents/folders using PnPjs
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!
Delete all SharePoint list items with PowerShell
Did you ever wanted to quickly delete all items from a SharePoint list without having to run into complex scenarios?
Setting managed metadata fields using PnP PowerShell
A few days ago, I was trying to set some managed metadata fields in a SharePoint library using the Set-PnPListItem command - which is greatly documented. But having worked with SharePoint for quite a few years, I immediately noticed that the examples in documentation for managed metadata fields did not contain the exception case for terms with the '&' character in the label. I had to deal with this case multiple times before, so writing this blog post to hopefully save some time in the future.