copy List from one to another site collection

Hi,

I have a site collection A and List A1 inside it and Site collection B and List B1 inside it.

Whenever a new item is addedin A1 , I want the same to be available in B1 and the same for updation as well.

How can I acheive this?

April 27th, 2015 8:29am

Hi Shreyas,

you can do that with SharePoint Designer workflow, so install sharepoint designer 2013, then open site and create workflow that starts when item is created but u need to select SharePoint 2010 as platform as copy action available with 2010 platform not 2013 (still will work with 2013 sites)

check this thread

http://sharepoint.stackexchange.com/questions/123017/how-to-copy-list-item-to-another-list-using-sharepoint-designer-2013-workflow

also check the following

http://www.fivenumber.com/copy-item-from-one-list-to-another-using-sharepoint-designer-workflow/

Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 8:56am

Hi John,

I need to copy between 2 site collections. Above solutions helps when both the lists are in same site collection.

April 27th, 2015 8:59am

Hi

i think this feature is not available OOB (from one site collection to another), you may look for writing Event Receivers.

Thanks,
Danny

Please mark as answer if it helps.

Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 9:05am

Hi Danny,

Thanks for the reply. Is there any detailed step by steps or any post Where I can get code for Event Receivers.

April 27th, 2015 9:11am

Hi

you can check these links for step by step process-

http://onceinawhilescribble.blogspot.in/2013/05/creating-simple-event-receiver-in.html

https://msdn.microsoft.com/en-us/library/ee231563.aspx?f=255&MSPPError=-2147217396

http://www.sharepointpals.com/post/How-to-create-a-custom-list-level-event-receiver-in-SharePoint-2013-and-SharePoint-2010

Thanks,

Danny

Please mark as answer if it helps.

Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 9:15am

Hi

1. create a powershell script which will copy the item

this is an example

http://adicodes.com/copy-or-replace-list-items-in-powershell/

2. create an event list, and attach it to your list ( main list )

http://www.sharepointpals.com/post/How-to-create-a-custom-list-level-event-receiver-in-SharePoint-2013-and-SharePoint-2010


2a. Start the powershell from event receiver

https://social.msdn.microsoft.com/Forums/en-US/ecffa2e7-3962-49d4-81db-b4b9e8964a9e/run-powershell-script-from-a-event-receiver?forum=sharepointdevelopmentprevious

April 27th, 2015 9:21am

Hi Romeo Donca,

Your solution seems to be helpful.... But I don't think I can run the powershell scripts on the servers. My cliant SP admins may not allow it

Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 9:29am

are u allowed to deploy code to server?
April 27th, 2015 10:18am

Hi John, Yes I can send solution and get it deployed. Is there a way to do without deploying? Work flow using Restapi calls?
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 10:02pm

Hi,

According to your description, my understanding is that you want to copy list items from one site collection.

If you don't want to do it without deploying, you can use rest api to copy list items from one site collection to another one, then you can use workflow to trigger the rest api when the source item created.

Here are some detailede code demos for your reference:

Copy List items using REST/JSON

CALLING THE SHAREPOINT 2013 REST API FROM A SHAREPOINT DESIGNER WORKFLOW

Thanks

Best Regards

May 2nd, 2015 5:15am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics