从父列表到子列表的一个方向同步 [英] One directional syncing from parent list to child list

查看:64
本文介绍了从父列表到子列表的一个方向同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们有一个主列表,拥有所有用户的只读权限,因此我们无法 添加任何额外的列或编辑项目。


因此我们认为我们将创建一个类似的列表,为所有用户提供权利,以便他们可以查看项目并为该特定项目发表评论item。


因此,我们将其保存为包含数据的列表模板,并根据此模板创建了另一个列表,并为我们的要求添加了一些额外的列。


现在,要求是始终将此自定义列表与主列表同步。 (掌握到我们的列表,即一个方向)


我的问题是我们如何从CSOM实现此要求,或者有任何方法可以完成此要求。 (没有任何付费工具)


我正在考虑使用"ChangeQuery和ChangeToken"。这个功能,但我想,它只是通过特定项目通知ADD / UPDATE / DELETE事件,而没有提到发生了哪些字段(列)。








Sonu

解决方案

< blockquote>

您好,


对于客户端解决方案,您可以开发远程事件接收器来监控主列表数据的变化。


以下是一些链接供您参考。


https://www.c-sharpcorner.com/article/creating-remote-event-receiver-in-sharepoint-2013/


https://docs.microsoft.com/en-us/sharep oint / dev / sp-add-ins / create-a-remote-event-receiver-in-sharepoint-add-ins


虽然您可以考虑使用工作流来满足此要求,这很容易实现。


https://social.msdn.microsoft.com/Forums/Lync/en-US/210353ac-d383-417a-9840-235953f962cb/how -do-i-update-on-field-on-second-list-using-sharepoint-designer?forum = sharepointcustomizationlegacy


< span style ="color:#1F497D">最好的问候,


Lee


Hi All,

We have a master list, having read only rights for all users, so we can not  add any extra columns or edit the items.

So we thought that we will create a similar list having contribute rights to all users so that they can review the items and give their comments for that particular item.

So, we saved it as list template with data and created another list based on this template and added few additional columns for our requirement.

Now, the requirement is to sync this custom list always with master list. (master to our list i.e. one directional)

My question is how can we achieve this requirement from CSOM or is there any way to get this requirement done. (without any paid tool)

I was thinking to use "ChangeQuery and ChangeToken" feature for this, but i think, it just notify ADD/UPDATE/DELETE events with particular item without mentioning in which field (column) the changes happened.



Sonu

解决方案

Hi,

For client side solution, you could develop remote event receiver to monitor master list data change.

Here are some links for your reference.

https://www.c-sharpcorner.com/article/creating-remote-event-receiver-in-sharepoint-2013/

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/create-a-remote-event-receiver-in-sharepoint-add-ins

While you may consider to work with workflow for this requirement which would be easy to achieve.

https://social.msdn.microsoft.com/Forums/Lync/en-US/210353ac-d383-417a-9840-235953f962cb/how-do-i-update-on-field-on-second-list-using-sharepoint-designer?forum=sharepointcustomizationlegacy

Best Regards,

Lee


这篇关于从父列表到子列表的一个方向同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆