Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SendBetterEmail - Use Email Template for body rich text #589

Open
streetyouth opened this issue Feb 9, 2021 · 5 comments
Open

SendBetterEmail - Use Email Template for body rich text #589

streetyouth opened this issue Feb 9, 2021 · 5 comments

Comments

@streetyouth
Copy link

Is your feature request related to a problem? Please describe.
I would love to be able to use SendBetterEmail and essentially recreate the send email Lightning component which allows editing of the text AFTER loading the template.

Describe the solution you'd like
Select a tempalte and then have the subject and body come back with merge fields still in source view.
Be able to use flow to edit the subject and body.
Be able to use flow to preview the subject and body given the recipient, sender, and related records.
Pass subject and body to SendBetterEmail

Describe alternatives you've considered
I can do things without tweaks and preview but it's blind. You pick a template and it goes out. User has to know what's in the template.

Additional context
Add any other context or screenshots about the feature request here.

@jdayment
Copy link
Collaborator

jdayment commented Feb 9, 2021

You can use a get step to get the email template in flow then display the email body in a screen component. I actually have some flows where the user builds their template and uses that in the apex action or they pick from a selection of templates using quickchoice. You could display body via the richtextinput component and allow edits and updates prior to the send as well.

@jdpond
Copy link
Collaborator

jdpond commented Jul 14, 2021

Can we close this one or do we really need a function that will load the template into the body? @streetyouth

@jdpond jdpond added this to the sendBetterEmail 2.3 milestone Oct 18, 2021
@jdpond jdpond changed the title Email Template to Send Better Email rich text SendBetterEmail - Use Email Template for body rich text Dec 8, 2021
@jdpond
Copy link
Collaborator

jdpond commented Dec 8, 2021

For full implementation, would also have to include a handlebars parser for related object fields (??renderEmailTemplate(whoId, whatId, bodies)??) and also insure there was a way to specify the related objects within the CPE (Custom Property Editor). It's a pretty big lift. Like all of these initiatives, it means I need to find the time outside my normal work to do it (all my open source is unfunded), and I just haven't been able to take the time to effectively design and scope it - much less implement.

@jdpond
Copy link
Collaborator

jdpond commented Oct 11, 2022

@jdayment Did we decide to close this one or actually take a look at loading merged template (with record and/or flow variable merged) for single message send - or is there a better solution since this?

@jdayment
Copy link
Collaborator

@jdpond I'm not sure if the lift would be beneficial you can currently get an email template in Flow and update the template so this might be a question of because we can in apex should we

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants