SharePoint Online: How to Hide a Column in Content Type using PowerShell?

Requirement: Hide a Column from Content Type in SharePoint Online. How to Hide a Column using Content types in SharePoint Online? Columns can be hidden at both content type level or list level in SharePoint. You can hide a column from appearing in list forms, such as: NewForm.aspx, EditForm.aspx, DispForm.asxp using content…

Read more

PowerShell to Add-Remove Fields to Content Type in SharePoint

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

Read more

Change Content Type of Existing Items in SharePoint using PowerShell

Requirement: We have an existing document library with 100’s of Sales proposal documents in it. To enforce standardization, the sales team created a content type, “Sales Proposal”. We got a requirement to change the content type of all existing documents stored in a particular document library with the default content type “Document”….

Read more

Add-Remove Content Types to SharePoint List or Library using PowerShell

SharePoint content types enables user to organize related data together. Everything is built around the content types in SharePoint to provide consistency and re-usability. Say for instance, All list templates such as Announcements, Tasks are built with content types “Announcement” and “Task” respectively! Typically a content type consists of template and metadata…

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

“The Content Type is in Use” Error in SharePoint – Find Where and Delete

We don’t need a particular content type anymore and wanted to delete the content type. Navigated to:     Site Actions >> Site Settings.     Under Galleries click Site content types.     Select the Content type to delete by clicking on its name.     Click “Delete this site content type” link. Oops! SharePoint returns an…

Read more