You need to sign in to do that
Don't have an account?
Arpit Gupta 62
When Lead Status Set to 'Working - Contacted ' send email to Client i.e . Lead's Email And add Date to field ‘Date_to_Send_email__c’ i.e today's date.
When Lead Status Set to 'Working - Contacted ' send email to Client i.e . Lead's Email
And add Date to field ‘Date_to_Send_email__c’ i.e today's date.
And add Date to field ‘Date_to_Send_email__c’ i.e today's date.
you can easily achieve this via Process builder.
In Process Builder
1. Select "Lead" as the Object.
2. Choose "When a record is created or edited" in "Start the process"
3. In Criteria choose "Conditions are met" and then set your conditions as
[Lead]Status = Working - Contacted
4. Select All of the conditions are met (AND)
5. In immediate Actions Set Email Alert from the Action type
For email alert - You have to have a email alert created for the Lead object.
6. In immediate action itself select Update records from the Action Type and choose the field to update and type as Formula
In value to update set the formula to update date field.
Regards
Karthik
Try this trigger and its handler class:
Trigger:
Handler Class:
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi