user152248
user152248

Reputation: 155

Rename a SharePoint list content type

I need to rename the content type I created a couple months back and have been using for a document library, assigned site columns to, created document library views for and have added workflow to.

It appears that this is quite simple to do under the site settings for content type. However it is often the simple, apparently straight forward things that cause unforeseen issues.

Does anyone know of any gotchas when it comes to renaming a content type?

Upvotes: 2

Views: 3802

Answers (2)

Alex Angas
Alex Angas

Reputation: 60027

You can set the SPContentType.Name property and then call SPContentType.Update(). Considering the guidelines linked to in Colin's answer you should test this in a non-production environment first.

Upvotes: 2

Colin
Colin

Reputation: 10638

Here's some guidelines, the main statement though is:

The general guideline for evolving the content type IA is to never change or rename content types or their aspects, make new ones and hide the old ones.

Upvotes: 2

Related Questions