LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

Allow Sending of Email Asynchronously

Open Henk3000 opened this issue 2 years ago • 3 comments

When using Send Better Email in a flow the content of the email will not incorporate changes made to objects elsewhere in the flow. This is an issue for example when using the action in a record triggered content where no "wait" or "pause" functions are available to commit the work to the database.

Therefore I added an option to be able to sent the email(s) via a future method.

Henk3000 avatar Jun 16 '22 14:06 Henk3000

Thanks for this nice enhancement, @Henk3000! Would you be interested in writing a blog post that discusses and demonstrates its use?

alexed1 avatar Jun 17 '22 22:06 alexed1

@alexed1 Sure, I will, I'll get on that somewhere this week.

Henk3000 avatar Jun 21 '22 07:06 Henk3000

great. let me know when you have it, and I'll merge and package this.

alexed1 avatar Jun 30 '22 14:06 alexed1

Hi, Henk. Just checking in on this. Do you think you'll have time to create a writeup? I'd love to add this....

alexed1 avatar Sep 19 '22 00:09 alexed1

@jdpond note that this is merged but was never packaged, so it will go into the next patch.

alexed1 avatar Oct 11 '22 03:10 alexed1

I've tested it by hand - but haven't added it to test class or Send_Better_Email_Testflow flow. Probably should do this, but prolly not necessary for next patch - just better to have to avoid future unintentional maintenance factors.

jdpond avatar Oct 11 '22 04:10 jdpond