SingleEmailMessage Methods | how to send an email from apex | salesforce developer | sfdc quest

  Рет қаралды 2,815

SFDC Quest

SFDC Quest

Күн бұрын

Пікірлер: 9
@SasikalaK-jw6mc
@SasikalaK-jw6mc Жыл бұрын
Thank you...Nice explanation
@TK-vt3ep
@TK-vt3ep Жыл бұрын
How to include cc, bcc as well and email template to use here?
@SFDCQuest
@SFDCQuest Жыл бұрын
use the below method for the same setTemplateId(templateId) developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_outbound_single.htm#apex_Messaging_SingleEmailMessage_setTemplateId setBccAddresses(bccAddresses) developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_outbound_single.htm#apex_Messaging_SingleEmailMessage_setBccAddresses setCcAddresses(ccAddresses) developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_outbound_single.htm#apex_Messaging_SingleEmailMessage_setCcAddresses
@TK-vt3ep
@TK-vt3ep Жыл бұрын
This is through class, that i know but how to do that through flow without using apex action.
@SFDCQuest
@SFDCQuest Жыл бұрын
@@TK-vt3ep here are options for sending an email help.salesforce.com/s/articleView?id=sf.flow_build_actions_email.htm&type=5 you can use email alert to refer to your email template. you can get full control of the parameters using apex action. Please let us know if you know of any other alternative. thanks.
@TK-vt3ep
@TK-vt3ep Жыл бұрын
I think you are not getting the question, for sending email we can use native or custom approach, however using native approach (like using email alert etc. In the flow) we can only use recipient email id which will be used as TO. What if i need to add cc and bcc as well along with email template, then there is no way for using those in the flow but using apex action only. That is what i was asking you , if you know how to send to, cc and bcc email recipient using flow elements rather than calling apex action.
@SFDCQuest
@SFDCQuest Жыл бұрын
@@TK-vt3ep Dear TK, I hope you have reviewed the documents shared in the earlier comments. Here is the summary again, we can use the email template from the email action but not the cc and bcc options. since that option is not provided. feel free to use the apex action for your requirement. Thanks.
FREE Salesforce Training Videos -- How to send email from APEX
40:45
Shekhar Salesforce
Рет қаралды 13 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 1,1 МЛН
Everything You Need To Know About SingleEmailMessage In 14 Mins
14:18
Apex Trigger: How to send an email using trigger.
16:24
Salesforce TechGeek
Рет қаралды 8 М.
Use AsyncApexJob and Singlemailmessage in batch Finish salesforce
19:29
Salesforce Code School
Рет қаралды 3,2 М.
Writing Highly Genericized Code Using Dynamic Apex and the Tooling API
39:27
Salesforce Developers
Рет қаралды 2,1 М.
Send Email Attachments With Salesforce Flow
8:25
Rotive - Brian Hays
Рет қаралды 13 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 6 МЛН