Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

This question was originally asked by Tom Tucker here: http://stackoverflow.com/users/668950/tom


I am trying to migrate a content type from a sharepoint site in one environment to another. For this reason, I need to use web services. At this point, I am able to get some of the content types metadata via the web service. But I am not sure if I am getting all the metadata. I am using the Webs.GetContentTypes() method to do this.

In the next step, I need to figure out the site columns that are associated with this content type, import these columns, and associate the content type with these imported columns.

I am looking to figure out the following:

  1. How do I know what site columns are associated with a given content type via web service? Or do I need to create a custom web service?
  2. How can I be sure that I have all the information required to reconstruct the content type in the destination server?

Any help in any capacity will greatly be appreciated. Thank you in advance.

share|improve this question
Is there a reason the client object model will not work for you (e.g. needs to work against 2007 or something)? – Samuel Yates Aug 2 '11 at 16:26
I believe there are two servers involved. In any case, I have proposed a solution to the question :) See below if it makes sense to you: stackoverflow.com/questions/6904513/… – Sam Patrick Aug 2 '11 at 16:29
1  
Yep, that seems workable. – Samuel Yates Aug 2 '11 at 17:43
Please don't crosspost questions between sites. All this really achieves is duplicate information. Plus you answered the original question?? – Kit Menke Aug 2 '11 at 21:20

closed as not constructive by Kit Menke Aug 2 '11 at 21:19

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

1 Answer

Can you try it belongs Andrew Conell extensions for Stsadm?

It helps you to retrive Content types and Site columns from a Site Collection.

Cheers.

share|improve this answer
I do not understand. Could you please elaborate? Thank you. – Sam Patrick Aug 2 '11 at 20:53

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