Itemupdating change value
We’ll develop a list item event receiver for Item Added and Item Updated events.When a new item will be added it’s easy to identify item status and if the status is pending then we can send notification to all people in the approving team.If not, kudos to you for tackling the object model with reckless abandon.Sometimes that is the most exciting way to learn, but for those less adventurous I will briefly cover the topic here.
Simply put, the Item Updating and Item Updated fire twice when adding a document to a library that has the Require Check Out option enabled.But when an Item is updated, you need to keep track of if the Approving status field value is changed, if so then u need to send notification.However, you can only get the old approval status field value in Item Updating event, but you don’t want to send notification in Item Updating. First we need an List Event Receiver that will listen three events of the list: Item Added, Item Upating and Item Updated.So when user add/edit an item and as part of the add/edit if approval status field get updated then which events to fire? So consider now the problem we’re going to talk about.We need a notification system where we need to send notification to the approver or user (who is waiting for approval) on approval status change.