LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

sendBetterEmail - previously used HTMLBody seems to still be sent when Use Email Body is selected

Open mirazonly opened this issue 3 years ago • 0 comments

When using the SendBetterEmail flow element, when I switched from using the html body to using the lightning email template, I kept receiving the error

An Apex error occurred: SendBetterEmail.InvocableActionException: No Messages were sent. First Error: You're trying to pass in both a plaintext/html body and a template ID. Gotta pick one or the other. Make sure you're not confusing the Text Template resources in Flow, (which you can pass into either the HTMLBody or the plainTextBody) with the templateID, which represents a Salesforce Email Template (either Classic or Lightning)."

The error went away after I deleted and recreated a new SendBetterEmail element.

mirazonly avatar Jan 20 '22 14:01 mirazonly