SharePoint Designer Workflow - copy entire list accross sites

scottsilvi
scottsilvi used Ask the Experts™
on
Hello,
Im looknig for a way to copy an entire list from one site to another, the site is used as a project managment solution for phone system installs, i want to be able to dynamically create tasks based on how the survey is answered.
I can do almost everything (Create a new site, link the site, etc..)  - Thanks to ilovesharepoint's create site worflow.
- i am currently looking for a way to 'load' up a list on the main protal site as the new workspace is created then copy that enitre list from the portal site to the new workspace- then delete the portal site list content as to be ready for the next approved phone system install.
Or rather than copy a list item from one site to another or simply create a new task on another site.
any thoughts?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010
Commented:
i don't think you can do that with a workflow.  well, unless you do it line by line....  in which case you'd need to iterate through the list with the workflow and copy each item, delete the item, and loop through again until all items are deleted from the source list.  not really a good solution, in my opinion

you're better off handling this via code.  here are some resources:
http://geekswithblogs.net/AnneBougie/archive/2009/01/23/copy-a-sharepoint-list.aspx
http://www.fivenumber.com/copy-sharepoint-list-items-from-one-site-to-another-programmatically/

http://www.praveenmodi.com/programmatically-delete-all-items-sharepoint-list/

http://msdn.microsoft.com/en-us/library/ms467435.aspx
You're looking to take a site that you have configured and are using in one location and set it up at another location without the current content ? If this is what you are doing,  then why use a workflow at all ? why not just create a site template from the current defination and make a feature which you install on the new site.
There is even software and tutorials of how to do this...
http://weblogs.asp.net/soever/archive/2006/11/11/SharePoint-Solution-Generator-_2D00_-part-1_3A00_-create-a-site-definition-from-an-existing-site.aspx
 
Sorry if i have missed the point of your post,  thats my two-peneth
I've requested that this question be closed as follows:

Closed

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
During cleanup I hit the wrong button.  I meant to recommend a split, with the second expert's comment being the best answer.

Commented:
Restarting auto-close per recommendation

_alias99
Community Support Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial