You need to sign in to do that
Don't have an account?
Ragnar Lothbrok 7
How to use the Email Template Body in LWC component ?
Hi there,
Today i was working on LWC Component which will give user an UI to send email with default email template assigned to that email.
Although i tried to get the email template from Apex class and used to in Email.
But it was not giving the correct format and data in email template.
Below is the .img for the same:
If anyone know how we can add and the same formattion as email template and data in template automatically appears. Please guide me in this. Thanks
Today i was working on LWC Component which will give user an UI to send email with default email template assigned to that email.
Although i tried to get the email template from Apex class and used to in Email.
But it was not giving the correct format and data in email template.
Below is the .img for the same:
If anyone know how we can add and the same formattion as email template and data in template automatically appears. Please guide me in this. Thanks
Check below reference examples for using email template body in LWC component
https://hicglobalsolutions.com/blog/send-emails-templates-lightning-component/
https://developer.salesforce.com/forums/?id=9062I000000IHZCQA4
Please mark as Best Answer if above information was helpful.
Thanks,