远程事件接收器项更新事件在提供者托管应用程序内无限次触发的问题 [英] Issue with Remote event receiver item updating event firing infinite times inside provider hosted app

查看:64
本文介绍了远程事件接收器项更新事件在提供者托管应用程序内无限次触发的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我开发了一个提供商托管应用并添加了一个远程事件接收器。我将listitem事件接收器附加到列表中,其中包含以下事件项目添加,更新,添加和更新。我添加了项目添加,更新,添加和更新事件的逻辑。当
我尝试将一个项目添加到列表中时,我看到项目更新逻辑无限次激活。我们如何限制项目更新仅触发一次事件?请建议。

 I developed a provider hosted app and added a remote event receiver. I attached listitem event receiver to a list with following events Item Adding, Updating, Added and Updated. I added logic for Item Adding, Updating, Added and Updated events. When i try to add an item to a list i see item updating logic is firing infinite times. How do we restrict item updating to fire an event only once? Please advice.

谢谢

Rao

程序员分析师

推荐答案

嗨Rao,

请在远程事件接收器中注释项目更新逻辑并添加简单代码检查问题是否仍然存在。

Please comment the item updating logic in remote event receiver and add simple code to check whether the issue still exists or not.

或者作为解决方法,添加新列(事件状态)以存储事件状态,然后检查项目更新事件中的状态值以决定运行项目中的代码逻辑更新。

Or as a workaround, add new column (Event Status) to store the event status, then check the status value in item updating event to decide run the code logic in item updating.

最好的问候,

Dennis


这篇关于远程事件接收器项更新事件在提供者托管应用程序内无限次触发的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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