A guide for developers who need to work with older module versions Sometimes you update PnP.PowerShell to the latest version, and suddenly a script stops working. Maybe a cmdlet changed behavior, a regression was introduced, or you simply need to test something against an older SharePoint environment. I had a problem where version 3.1.0 of … Continue reading Switching Between Different Versions of PnP.PowerShell
Uncategorized
How to Set Up an NPM Repository in Azure DevOps for Your SharePoint Framework Solutions
One of the most underrated productivity boosts in SharePoint Framework development is the ability to share reusable SPFx components across multiple projects. Instead of copying code between solutions or maintaining private Git repositories for shared code, the cleanest approach is: Publish reusable SPFx components as private NPM packages Host them in your Azure DevOps Artifacts … Continue reading How to Set Up an NPM Repository in Azure DevOps for Your SharePoint Framework Solutions
Automate Email Generation with JSON Column Formatting in SharePoint
As SharePoint developers, we are often asked to streamline processes for end users. One common task is providing a quick way to send prefilled emails with dynamic content straight from a SharePoint list. In this blog post, I will guide you through a simple JSON formatting solution that opens a new Outlook email window with … Continue reading Automate Email Generation with JSON Column Formatting in SharePoint
Automating Site Collection Administrator Addition for All Sites in a SharePoint Online Hub
If you need to add a user as a site collection administrator across all these sites, doing it manually can be time-consuming and prone to errors. Thankfully, PowerShell and the PnP PowerShell module can help automate this task efficiently. In this blog post, I'll guide you through a script that adds a user as a … Continue reading Automating Site Collection Administrator Addition for All Sites in a SharePoint Online Hub
Automating Content Type Updates Across Document Libraries in SharePoint Online
Introduction If you need to update all document libraries in all sites in a SharePoint Online hub from using a local content type to use a content type from the content type hub, this blog post shows how you can achieve this. Manually managing content types across multiple sites in SharePoint Online can be a … Continue reading Automating Content Type Updates Across Document Libraries in SharePoint Online
PnP Search Extension – Rendering a field value
When using the PnP Search Web Parts, you have the possibilty of extending the web part by building custom web components that can be used in the handlebar code. (Read more about PnP Search extensibility here). In the handlebar templates in PnP Search, the values of managed search properties are used to display the search … Continue reading PnP Search Extension – Rendering a field value
Show/hide custom action with JSON Formatter in SharePoint based on file type
The Case I had a customer case where they wanted to show or hide a setValue custom action (customRowAction) conditionally based on the type of document in a SharePoint document library. The custom action without any conditions applied looks like this: The requirement was that they wanted to show this toggle button (setValue custom row … Continue reading Show/hide custom action with JSON Formatter in SharePoint based on file type
“JavaScript-only” deployment of display templates
In most articles concerning the deployment of search display templates to SharePoint the method described is to copy one of the existing html design files in the "/_catalogs/masterpage/display templates" folder and save it with a new name in the same folder. But, when deploying from Visual Studio or from a package wsp, I think a … Continue reading “JavaScript-only” deployment of display templates
Custom e-mail content in a SingleTask activity in SharePoint 2013 Workflows
When creating a SharePoint 2013 workflow in Visual Studio 2013 you might want to assign a task to a person involved in the workflow. This can easily be done by using the built-in SingleTask activity. Here is an example of such an activity: The SingleTask activity automatically sends an e-mail to the person that … Continue reading Custom e-mail content in a SingleTask activity in SharePoint 2013 Workflows
SharePoint REST API – getting user information from list item field
If you are using the SharePoint REST API to fetch list items, you might need to present the user information in a user field of the list item. If you for example have a Task List and want to present the Assigned To field, you will need to build the REST Query in a certain way. … Continue reading SharePoint REST API – getting user information from list item field