开发者

Sharepoint Workflow is still recursive on item change even with sp2

开发者 https://www.devze.com 2023-02-14 12:48 出处:网络
I have a basic workflow programmed in Visual Studio 10 for a sharepoint site.It fires on a list item change or creation.The wo开发者_Go百科rkflow basically sends an email, changes the value of one of

I have a basic workflow programmed in Visual Studio 10 for a sharepoint site. It fires on a list item change or creation. The wo开发者_Go百科rkflow basically sends an email, changes the value of one of the item fields and updates the field.

The problem: Before sp2, this should create a recursive workflow where the workflowproperties.Item.Update re-calls the items on-change event and restarts the workflow and I end up with a bunch of emails in my inbox.

From my research, sp2 was supposed to eliminate this but it seems to be still happening to me.

From what I've researched, my version number 12.0.0.6421 is from SP2 so I shouldn't be getting this problem.

Any ideas how to stop the recursion?

Thanks in advance.


Disableeventfiring is your friend when updating list items.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号