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
ran67ran67 

email template help

i have created an email template 

 

 

EmailTemplate et = [SELECT Id FROM EmailTemplate WHERE DeveloperName='Promotional_Stationery_Inventory'];

 

here wt is an developername is it  an field or here in developer name what we must  send to it

developername means ownername or emailtemplatename

please help me wt to follow

thanks in advance

 

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

Developername is a emailtemplatename in the EmailTemplate object.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

All Answers

Navatar_DbSupNavatar_DbSup

Hi,

 

Developername is a emailtemplatename in the EmailTemplate object.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

This was selected as the best answer
NatrajNatraj

To Query the email template it should be

 

EmailTemplate et = [SELECT Id FROM EmailTemplate WHERE DeveloperName='Promotional_Stationery_Inventory'];

 

Name : This is the name of the template. We can have more than one email templates with the same name

 

DeveloperName : The unique name of the object in the API. We cannot have more than one email template with same unique name.

 

 

So If we have more than one email template with the same name, then we can query it using the DEVELOPERNAME which is unique