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

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

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

Getting List Properties from SchemaXml

There are many ways in CSOM to get the list properties from SharePoint site but few properties are there which we can’t get directly from list object. In this blog, I will explain how to find those using the SchemaXml. In this blog, I will explain how to find few list properties using SchemaXml l. There are many ways in CSOM to get the properties from SharePoint list but few properties are there which we can’t get directly from list

Continue Reading

How to Change the Look of SharePoint using CSOM

This blog will help you how to change SharePoint look programmatically using CSOM. In SharePoint we can manually change the site collection look through Navigating Site setting -> Look and feel -> Change the look. Select the template that you want to keep. To change the sharepoint look programatically, first we have to get Theme Url,Image Url,Font Scheme URL of templates. we can get it in Composed Looks list.you can get it navigating through “Siteurl + /_catalogs/design/AllItems.aspx” . Below image

Continue Reading

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

Site Footer