Blog Posts

How to get all SharePoint List item versions using ‘Client Side Object’ model both for Custom list and Document Library?

Basically in CSOM, there is no direct property to get the item versions from a List Item. But by using “Lists Web Service”(/_vti_bin/Lists.asmx) we can get all versions and properties information for each item inside Custom List or Document Library. To get the above required functionality first of all we have add the “Lists Web Service” in the required project. In this blog, I am going share all codes how we can get all List Items version by using “Lists

Continue Reading

How To Get All Orphan Users Present In SharePoint On-Premise Site

An Orphaned User is a user account that is available in SharePoint site but that user can’t access SharePoint any longer. This can be in a case if the user account is deleted or disabled from the Active Directory. In this blog, first, we are retrieving all the users from the user information list of the site collection, then we are checking whether those users are valid or invalid in our Active Directory. The below image shows all my users

Continue Reading

SharePoint App Operations Using PnP PowerShell

PnP PowerShell can be used to automate the deployment, publishing, installing, upgrading and retracting apps in SharePoint online as well as SharePoint on-premises. In this blog, we will look at steps to get, add, install, deploy, update, remove and uninstall SharePoint app to Modern Site using PnP PowerShell. Adding and publishing app to the app catalog: Adding app (.sppkg file, .app file) to the tenant scoped app catalog. –> Add-PnPApp -Path <App Path> -Scope Tenant Once added, need to continue with

Continue Reading

How to use Mutation Observer in SPFx (Application Customizer)

  The following blog will help you to add your custom action menu in SharePoint modern page. As we are not able to get the DOM element for action menu in OnInit() method of SPFx(application customizer) so here we will see how mutation observer helps to get the DOM element SharePoint modern pages custom action menus and add your own custom action menu to the existing menus. To use mutation observer in your client-side extension, first, you need to install

Continue Reading

Identify The Modern Pages And Copy Them To Another Site Collection

In this blog, I am going to perform two actions – Identify if a page is a modern page or not. Migrate or copy that modern page (including its content) to another site collection or site (destination location) I am going to accomplish these tasks by using CSOM (Client Object Model). After identifying the modern page, I will copy the modern page into another site collection (destination location) and then, will migrate all the page contents of this modern page

Continue Reading

Wildcard search of Users using CSOM in SharePoint

In this blog, I will explain how to find users using ClientPeoplePickerSearchUser class. There are many ways in CSOM to get the users from SharePoint site or web but I did not find any proper way to perform wildcard search of users from SharePoint site using CSOM. For e.g lets, I want to find all users present in site collection where the first name starts with “John” or last name starts with “Patt”. This below-mentioned code sample will help us

Continue Reading

Add and Remove Site Columns from Site Content Type

In this blog post, I am going to add and remove site columns in existing site content type. Content types empower you to arrange, oversee, and handle content reliably across your sites. To view all content types used in the site collection. Open SharePoint site Navigate to site settings ->Under Web designer galleries -> Click Site content type or navigate to this url “<Site Url>+ /_layouts/15/mngctype.aspx” We can view all site contents type. To view details of the content type

Continue Reading

Configure SharePoint On-Premises Deployments for Apps in SharePoint 2019

This article describes how to configure the on-premise environment to support Apps in SharePoint 2019. Follow below steps to configure the environment: 1- Configure the domain names in DNS 2- Verify the newly created domain name 3- Configure the Subscription Settings and App Management service applications 4- Configure App URLs Configure the domain names in DNS: 1) In DNS Manager, right-click Forward Lookup Zones, and then click New Zone…. 2) In the New Zone Wizard, click Next. 3) In the Zone Type page, choose a Primary

Continue Reading

How to Create Web Part Page in SharePoint 2013/2016/2019 Programmatically using CSOM?

Basically, CSOM has not exposed any inbuilt functions which will help us in creating web part page template in SharePoint 2013/2016/2019. By using CSOM functions we can create wiki pages, modern pages and also publishing page but we cannot create web part pages. In this blog post I am going to use “Web Browser Control” to achieve this task. By using “Web Browser Control” we can create webpart page in destination page Library. We can create web part page by

Continue Reading

Retrieve SP list item’s column value in SPFx application customizer using PNP

In this blog article, I am going to describe all the steps required to get SharePoint list field values by using SharePoint Framework model which is SPFx. If you are already familiar with SPFx then you might have a better understanding on SPFx application customizer. If you are new to SPFx then please go through this below-mentioned link from where you can get a better understanding on SPFx model. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-framework-overview In this below-mentioned code example, I have taken application customizer

Continue Reading

Site Footer