LightningFlowComponents
LightningFlowComponents copied to clipboard
Allow Sending of Email Asynchronously
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.
Thanks for this nice enhancement, @Henk3000! Would you be interested in writing a blog post that discusses and demonstrates its use?
@alexed1 Sure, I will, I'll get on that somewhere this week.
great. let me know when you have it, and I'll merge and package this.
Hi, Henk. Just checking in on this. Do you think you'll have time to create a writeup? I'd love to add this....
@jdpond note that this is merged but was never packaged, so it will go into the next patch.
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.