I have an item event receiver for a specific type of content that is used in the Pages library. I use the event logger to debug it, and I can say that whenever I edit a page and publish it, it fires 3 ItemUpdating and 3 ItemUpdated . I am sure that no other pages will be saved at this specific time.
What is the reason for this and is there a way to βfixβ it in order to trigger the publication of only one event on a page?
Alternatively, is there a way to distinguish the last of the events (i.e.: the page is now being published or published) from the others, so I donβt run my code three times?
source share