Itemupdating firing 2 times
To work around this issue, I implemented the following code: The code looks for the key (the Doc ID) in the property bag and if it is present, skip the creation of the task and remove the property from the bag.
The document's Doc ID is being used as the key--it will be unique.
I am certain that no other pages are being saved in that specific time.
What is the cause of this and is there any way to "fix" it to trigger only 1 event per page publish?
And Item Updated gets called after the item is updated.
Sequence = 5000; // put any number here sp Event Receiver Def. Item Updating gets called synchronously just before an item is updated.
I have an item event receiver for a specific content type that is used in a Pages library.
I want to trigger a workflow only when a value is updated in a list item, but not everytime the item is changed.The requirement is pretty simple, when a document is added to the Documents library or an existing document is updated, create a task for someone to review the document's metadata.The problem is that the Item Updated event in this custom Event Receiver will fire twice under certain circumstances--such as having require document checkout set on the Documents library.Specifically the issue occurs when: of your event receiver is that it’s going to do something in Share Point!Perhaps you need to create, update or delete an item somewhere, or perform some other action related to sites, users or data in Share Point.
It really doesn't matter what the value of the property is--it just matters that it is there.