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
Coral RacingCoral Racing 

Validation Rule Help with Email Templates?

Hello

We have multiple email templates for Object Incident__c  and I was wanting to know if it is possible to write a validation rule to stop Staff from using Template x when Field Y is not null/blank?

I am unsure where the Email Template fields are stored?

Many thanks

Sonya
SonamSonam (Salesforce Developers) 
This is something you will have to implement using code as its not possible to implement using out-of-box functionality.Email template fields are merge fields which are stored in the object record itself and are pulled realtime when you try to use a template.Hoping I've understood the req correctly and this helps!
Coral RacingCoral Racing
Thanks for getting back to me.  If it involves code then I wil have to put this one to bed, as I am not able to do this.  Thanks for you advice
Erica KaneErica Kane
Thank you for the answer, but that's rather depressing.