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?
Technology Tips and News
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?
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
also check the following
http://www.fivenumber.com/copy-item-from-one-list-to-another-using-sharepoint-designer-workflow/
Hi John,
I need to copy between 2 site collections. Above solutions helps when both the lists are in same site collection.
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.
Hi Danny,
Thanks for the reply. Is there any detailed step by steps or any post Where I can get code for Event Receivers.
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.
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
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
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