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.
3 Answers
You could use the "Save List as Template" functionality available in the List Settings.
Check out my SPServices jQuery library for help on this. http://spservices.codeplex.com
It'll be a combination of GetList and AddList.
- Can I use this library in a Windows Application?Vivek– Vivek2010-09-16 12:03:01 +00:00Commented Sep 16, 2010 at 12:03
- I can't see why not, but it all depends on what you are doing.Marc D Anderson– Marc D Anderson2010-09-19 02:41:00 +00:00Commented Sep 19, 2010 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.