Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

There is already a content type whhich is created on RootWeb of a alll Site collections. this Content type has been created programmatically (site scoped feature) so that it gets dynamic guid (id). Now I have to give this content type a static id (guid). the problem is there are too many lists and documents which already used (added) this content type. the question is what is the best solution (safe). do I delete the content type from all rootWebs, lists and recreate it (with a static id) and add it again to the lists? or is there a way to update the id of the content type? I need some code sample (I myself prefer powershell) thanks for any advice.

share|improve this question
add comment

1 Answer 1

I suggest following plan:

  1. Create the new ContentType with the right id.
  2. Add it to all the site collections that need it
  3. Add it to all the lists that need it
  4. Change the contenttype of all the listitems
  5. Remove the old content type from all the lists
  6. Delete the old content type from all the site collections
share|improve this answer
    
thank you sir, I will test this scenario. –  Medes Mar 22 '12 at 8:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.