I'm trying to figure out how we might send a notification to users when a field value changes from one specific value to another specific value. There's no "IDOPreItemUpdate" event to the best of my knowledge so we would ideally need a way to capture the value before the user saves and after the user saves, but I cannot find a way to do so. A specific example is that we want a notification when an item changes from Material to Tool.
My best idea to accomplish this would be to regularly run an event that would set a global constant to the number of items that meet the criteria of the pre-change field, and then another event that would find that count as well, and if the counts do not match, say it changes from 10 to 9, get the most recently updated record and send that in the email. I can already see some flaws in this approach, and I cannot find a way to set global variables programmatically, so any help would be much appreciated.