SharePoint Online: Remove a Site Column from Content Type using PowerShell

Requirement: Remove a Site Column from Content Type in SharePoint Online. How to Remove a Column from Content Type in SharePoint Online? When you remove a site column from a content type, It does not delete the column from SharePoint Online. It simply removes the site column’s association from the particular content…

Read more

SharePoint Online: How to Add a Site Column to Content Type using PowerShell?

Requirement:  Add a site column to content type in SharePoint Online using PowerShell. How to add a field to an existing content type in SharePoint? By default, Title column gets added to the content type. However, you may want to add additional columns.  Go to the SharePoint Online site where you want…

Read more

PowerShell to Add-Remove Fields to Content Type in SharePoint

If you have a requirement to add a field to content type or remove a field from existing content type, use this PowerShell script: PowerShell script to Add a field to content type: Lets add some error handling and make a reusable function to add site column to content type using PowerShell!…

Read more

How to Create a Cross-Site Lookup Site Column in SharePoint 2013?

Lookup columns are used to get its value from a field in another list in SharePoint sites. Lookup fields also provide a relationship between lists/libraries. Is it possible to create a lookup column from the list on another site? Sure, use site columns, so that you can utilize SharePoint 2013 lookup column…

Read more

Delete a Site Column using PowerShell in SharePoint

Requirement: Delete site column with PowerShell in SharePoint How to Delete a Site Column in SharePoint? Site columns in SharePoint can be deleted when we don’t need them anymore. When you delete a site column, any lists and libraries with the particular site column don’t get affected. That site column becomes a…

Read more

Create Site Column in SharePoint using PowerShell

The PowerShell way of adding site column is extremely helpful when you have to add site columns in bulk. Say for e.g. You may have certain site columns created in your DEV environment and would like to have them in Staging or in PROD environment. Will you be creating them one by…

Read more

Exclude a Column from SharePoint Search Crawl

Requirement:  Exclude a column from SharePoint search. By default, the SharePoint search engine craws and indexes all documents and their associated metadata properties from lists and libraries. In our case, We keep few fields for configuration in a custom SharePoint application and don’t want those fields to appear in SharePoint Search results….

Read more

Find SharePoint Site Column Usage – Report

When trying to delete a SharePoint site column, it gave me an alert saying “Site columns which are included in content types cannot be deleted. Remove all references to this site column prior to deleting it.”  Alright, Lets use PowerShell to find what lists or content types are using a particular site…

Read more

Export-Import Site Columns in SharePoint using PowerShell

It’s a frequent requirement to copy site columns between SharePoint environments, isn’t it? Today had a requirement to copy a bunch of site columns from the development environment to the staging environment. We used to package site columns as a WSP Solution package in such requirements: Create Site Column Feature for SharePoint…

Read more