You need to sign in to do that
Don't have an account?
dasari123
trigger to send a email when field is updated
HI ,
I have some fields in a object ,My requirment is i have selected four fields ,if any of these four fields value is changed i want to send a email to the record owner with only one updated field value.
I have some fields in a object ,My requirment is i have selected four fields ,if any of these four fields value is changed i want to send a email to the record owner with only one updated field value.
I would suggest to write something based on the suggestion below :-
Create a before update Trigger on your object which would check whether the value has been changed in any of your fields,if that is true then send an email using Messaging.SingleEmailMessage class.
If this helps,please mark it as best answer to help others :)
I could probably get you started.
If this helps...please mark as either best answer or like it please. This trigger is designed to send an email when a field is changed...You will just have to change the object and field names, I will highlight the important bits. It works by getting triggered when a field is changed and then uses an email handler to send the email.
Email handler class:
and the trigger:
I hopethis helps. Remember to mark as solution when it works. Thank you(using the PRIORVALUE function )