function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
neta montianoneta montiano 

Sending an email only when field is updated - Process builder

Hey
I have a question about the conditions for sending an email alert.
What are the Conditions That I should do when the field is updated and only then the customer receives an email.

"When "Driving License Number" field (text type) is updated in the Contact object, an Email should be sent"

THANK YOU SO MUCH
Best Answer chosen by neta montiano
VinayVinay (Salesforce Developers) 
If you are using text field then try below.

Select 'Formula evaluates to true' in process builder and try below formula
ISCHANGED([Contact].Driving License Number__c )
Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Neta,

You can use process builder or workflow rule to trigger email whenever field is updated.

Check below examples.

https://trailhead.salesforce.com/content/learn/modules/business_process_automation/process_builder
https://help.mypurecloud.com/articles/use-process-builder-to-route-salesforce-emails/
https://automationchampion.com/tag/send-an-email-process-builder/

Please mark as Best Answer if above information was helpful.

Thanks,
neta montianoneta montiano
Hey You! Thank you for you answer.
The option "equal"  - "Boolean" does not show. Maybe because the field is a text type?
So I tried to do this:
Operator: Equals
Type: is changed
Value: true

but it didn't work out :(
VinayVinay (Salesforce Developers) 
If you are using text field then try below.

Select 'Formula evaluates to true' in process builder and try below formula
ISCHANGED([Contact].Driving License Number__c )
Thanks,
This was selected as the best answer
neta montianoneta montiano
I tried this but when i updated the field an error message shows:

We can't save this record because the “Car Process” process failed. Give your Salesforce admin these details. We were unable to process the email template. Error Message: core.email.template.TemplateRenderingException: We don't recognize the field prefix Recipient. Associate a record that matches the prefix or update the template to remove the merge field from the body, subject, or letterhead. Error ID: 2058668558-2800 (-173753846)
VinayVinay (Salesforce Developers) 
This seem to issue with merge fields on email template.  Can you check?

https://help.salesforce.com/articleView?id=000315799&type=1&mode=1
https://salesforce.stackexchange.com/questions/323475/merge-field-not-working-in-lightning-email-template

Thanks,
neta montianoneta montiano
This is the email that i wrote:

"Dear {{{Recipient.FirstName}}}, on {{{Recipient.CreatedDate}}}, Driver's license number has been updated to the following number: {{{Recipient.Driving_License_Number__c}}}"


do you see any problem with that? thanks.
neta montianoneta montiano
I used the Lightning email template