如何将主列表数据与不同的网站集主列表数据同步 [英] How to synchronize master list data with different site collections master list data
问题描述
大家好,
我们有如下要求
我们有两个网站集,例如A网站集的主列表中没有几列,而我们又有一个网站集B的主列表中,A网站集列表中的公共列很少.当我们更新网站集A中的主列表时, 这些更新将必须在网站集B主列表中进行更新.
We have two site collections like A site collection having master list few columns and we have one more site collection B having master list with few common columns in A site collection list.when we update master list in site collection A will automatically those updates will have to update in site collection B master list.
请指导我,这是达到上述要求的最佳方法.
Please guide me which is best approach to achieve above requirement..
任何建议将不胜感激!
谢谢
Dilip
推荐答案
您可以为此创建工作流程.
You could create a workflow for this.
授予工作流程租户许可,如下所示.
Grant workflow tenant permission as below.
http://dinushaonline.blogspot.sg/2014/07 /cross-site-collection-data-access-via.html
然后,调用rest apihttp://targetsite/_api/web/lists/getbytitle('targetlist')/items创建项目.
Then, call rest api http://targetsite/_api/web/lists/getbytitle('targetlist')/items to create the item.
这里是线程供您参考.
https://cann0nf0dder.wordpress. com/2017/06/26/sharepoint-designer-2013-workflows-and-post-rest-api/
我的测试示例屏幕截图.
My test sample screenshot.
如果不需要立即同步数据,则可以创建一个Powershell脚本来定期同步数据(Windows任务计划程序).
If the data don't need to sync immediately, you could create a powershell script to sync the data regularly(windows task scheduler).
一个链接供您参考.
http://www.sharepointdiary.com /2015/10/copy-list-items-between-sharepoint-lists-using-powershell.html 最好的问候,
李
这篇关于如何将主列表数据与不同的网站集主列表数据同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!