有什么方法可以找到远程事件接收器的项目更新事件是由程序性更新触发还是通过使用“自定义列表"的编辑表单手动更新 [英] Is there any way to find the Item updating event of Remote Event Receiver is triggered by Programmatical update or update by manually using edit form of Custom list

查看:90
本文介绍了有什么方法可以找到远程事件接收器的项目更新事件是由程序性更新触发还是通过使用“自定义列表"的编辑表单手动更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的场景中,我面临一个问题,当我们使用列表的编辑形式手动更新项目时,我必须在远程事件接收器中触发项目更新事件,但是在同一列表中,我们正在更新来自另一个事件接收器的列表项,用于 我应该停止触发项目更新事件.我提到许多网站时,大多是他们说无法禁用远程事件接收器中的事件接收器,例如" 

In my scenario i am facing an issue that i have to trigger the Item updating event in the Remote event receiver when we update it manually using edit form of list, but in the same list we are updating  the list item from another event receiver ,for that i should stop triggering Item updating event.I referred many websites mostly they said there is no way to disable event receiver in Remote event receiver like  we have  this.EventFiringEnabled =false; in the SPItemRemoteEventReceiver. Is there any other way to overcome this scenerio.(Note: The remote event receiver is a Provider hosted app with csom code).Any suggestions or help will be appreciated.Thanks in advance


推荐答案

如果进行更新的帐户在Web应用程序用户策略中以系统"身份运行并运行所有更新,将会发生什么情况作为系统更新",而不仅仅是更新.这样可以避免它们触发事件.

What happens if the account that is doing the update is operating as 'system' in the web application user policy and runs all updates as 'systemupdates' rather than just updates. That may allow you to avoid them triggering events.

或者,您可以考虑检查触发事件的用户,我认为这是可以访问的,并且可以筛选出非用户更改.

Alternatively you could consider checking the user that has triggered the event, i think that's possible to access and would allow you to screen out non-user changes.


这篇关于有什么方法可以找到远程事件接收器的项目更新事件是由程序性更新触发还是通过使用“自定义列表"的编辑表单手动更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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