You need to sign in to do that
Don't have an account?
Installfree
Trigger an action after change in case record
Hi,
I want to send an email notification after any case update. The email should include the fields that were changed and old and new values.
Do I have a way to understand which fileds were changed without comparing Trigger.New.Field with Trigger.Old.Field? (ofcourse, it will be unwise to go over all the fields of case object)
Thanks
Shuky
You can enable History tracking for such fields and then query on the History metadata object to get the changed values!
Cool_D
Hi,
Thanks for your replay.
Can you explain in details how to do this?
Thanks
There is "History tracking" feature which you can enable for fields on ur object!
You can programatically access a metadata object "History" which stores all this information for you like when the field was changed and what value was updated.
Querying this object, you can get to know whether an update happened or not on a particular set of fields. You can refer to the user guide or api guide to get more details about this.
Cool_D