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

How can I copy a list (including fields, views or Schema) from one SharePoint web site and create an equivalent list instance on another SharePoint web site (which can be in a different site collection) using OOB MOSS web services.

share|improve this question

3 Answers 3

You could use the "Save List as Template" functionality available in the List Settings.

share|improve this answer
    
My requirement is to create an .net application which can accomplish this task. –  Vivek Sep 20 '10 at 7:10
    
This answers the question, the way it is currently phrased. +1 –  SPDoctor Jul 27 '11 at 9:01

Check out my SPServices jQuery library for help on this. http://spservices.codeplex.com

It'll be a combination of GetList and AddList.

share|improve this answer
    
Can I use this library in a Windows Application? –  Vivek Sep 16 '10 at 12:03
    
I can't see why not, but it all depends on what you are doing. –  Marc D Anderson Sep 19 '10 at 2:41

You can do this using any interface that supports SOAP calls. I use MSXML2.XMLHTTP regularly. You will need to use GetList to retrieve information about the source list, and AddList to create the destination list. Similarly, you can GetView and AddView to copy the views.

share|improve this answer

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.