Add And Manipulate Modern SharePoint Page Using PnP PowerShell

In this blog, we will look at the steps to add and manipulate Modern SharePoint page using PnP PowerShell. Adding a Modern page to the SharePoint site The Add-PnPClientSidePage command is used to add a modern page to the SharePoint site. Add-PnPClientSidePage -Name “NewPage” Output By default, Add-PnPClientSidePage creates an Article layout type. To create the Home layout type, we have to pass “Home” as a “LayoutType” parameter. Add-PnPClientSidePage -Name “NewPage” -LayoutType Home Output Set the Modern page Property The Set-PnPClientSidePage command is used to update the

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

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

Site Footer