Blog Posts

Add, Remove and Get all webparts from modern site page using PnP PowerShell

In this blog, we are going to retrieve all webparts present in a modern site page. Also, we will see how to add different web parts and delete web part from modern site page using PnP PowerShell. 1. First We Need to Connect to Site. To Perform Connection Add 2. Add different webparts. To add a text editor web part To add a list view web part You can see two web parts added successfully in modern site page. 3.

Continue Reading

Add And Remove Operation Of Custom Action In SharePoint Site Using PnP PowerShell

In this blog, we will see how we can add a custom action in SharePoint site using PnP PowerShell. Also, we will see how we can get particular custom action and remove it from SharePoint site using PnP PowerShell. Add Custom Action:- In the following example, I have added a personal action menu in my SharePoint site. Get Particular Custom action and remove it from site:- You can get all user custom action present under site using following script:               

Continue Reading

Get Site Collection from Web Application

In this blog, I will explain how to get all the site Collection under a SharePoint web application by the help of SharePoint Search. We can get the subsites under the site using CSOM easily but if we need to get all the site collections under a specific web application from a SharePoint farm then we can’t get it directly. For that, we have to use SharePoint search. By using SharePoint Search we will set the “KeywordQuery” to filter and

Continue Reading

Update a SharePoint ListItem without increasing its item file version using SharePoint Client Side Model(CSOM).

Basically, when we are trying to update a SharePoint ListItem/Document then the item/file version is increased according to the list versioning. In the Server side object model, we can update a ListItem without increasing its file version by setting ‘SystemUpdate’ as false. But in CSOM ‘SystemUpdate’ property is not supported. In this below code block I have mentioned how we can Update a Listitem/file without changing item/file version number by using “ValidateUpdateListItem” method. I have used a sample console application

Continue Reading

MFA (Multi Factor Authentication) Authentication using PowerShell in SharePoint online

Now a day’s authentication is the most important factor in cloud environment. Many of the organizations are utilizing SharePoint Online as their Content Management System, it is basic that the delicate information does not slip into false hands. Therefore, Multi-Factor Authentication for Office 365 becomes possibly the most important factor. Multi-factor authentication, is a two-step process. In addition to passwords, users are expected to acknowledge a phone call/ text message to complete the verification process. One can enable Multi-Factor Authentication

Continue Reading

Get SPList column values in SPFX application customizer using PnP

In this blog the method to get a SharePoint lists column values in SPFX application customizer is explained elaborately. We will see how we can use pnp in SPFX to get our required values. In the following code we will retrieve the value of the default columns for example “Title”, “Id” etc. also value of some custom columns. In the following code block I have retrieved following column values: Title Id MyCustomFld which is a custom column MyLookUpFld which is

Continue Reading

Add and Remove Custom Action Using PnP PowerShell

In this blog article, I am going to add and remove custom action using PnP PowerShell. Adding a custom action to the SharePoint site: The Add-PnPCustomAction command is used to add a user custom action to a web or site collection. Example: This example adds a new custom action to the Site Settings, and sets the Title, Name and other fields with the specified values. Add-PnPCustomAction -Name ‘Item Search’ -Title ‘Item Search’ -Description ‘Adds custom action to SiteSettings’ -Group ‘SiteAdministration’ -Location ‘Microsoft.SharePoint.SiteSettings’

Continue Reading

How to Add, Update and Delete SharePoint List View Using Pnp In SPFX Application-Customizer

In this blog the method to add, update and delete SharePoint list view in SPFX application customizer is explained elaborately. We will see how we can use pnp in SPFX to perform all these list view operations. In the following code we will go through step by step method to add our custom views with required properties, update an existing list view and finally how to delete a list view. Befor you start using the code attached you have to

Continue Reading

Set List Properties By WebRequest

There are many ways in CSOM to set the list properties of a SharePoint site but there are a few properties which we can’t set directly from list object. In this blog, I will explain how to set those properties using WebRequest. There are many ways in CSOM to set the list properties of a SharePoint site. But there are a few properties which we can’t set directly from the list object. In this blog, I will explain how to

Continue Reading

How to create structural navigation nodes both in quick launch and top navigation node

Sharepoint customizes navigation feature so that user can navigate to different location and access them quickly.You can add, edit, or remove links on the left-hand menu (Quick Launch menu), the top menu (Top Navigation Node) through edit links. In this blog we are going to create structural navigation node that is root node having subnodes in both top navigation and quick launch. After code executed, you can see root navigation with their respective subnodes created successfully. This solution is brought

Continue Reading

Site Footer