Skip to main content

New answers tagged

-1 votes

Can't use LWC in Email Template when using @wire method

is there any work around for that. SO we can pass a record id or it is not possible?
Rishabh Deshwal's user avatar
0 votes

Getting error while sending email

Please check the doc. setTargetObjectId(targetObjectId) Required if using a template, optional otherwise. The ID of the contact, lead, or user to which the email will be sent. The ID you specify sets ...
Andrii Muzychuk's user avatar
0 votes

Getting error while sending email

Changes you should do in your code: Target Object: Change email.setTargetObjectId(c.OwnerId) to email.setTargetObjectId(c.ContactId) to ensure the target is a contact associated with the case, not a ...
Umesh Beti's user avatar
0 votes

Unable to send Email

You need to add email.setWhatId(c.Id) to set the relationship that will resolve the Case reference.
sfdcfox's user avatar
  • 497k
0 votes

Send email in AfterUpdate of new record using the new record for merge fields

The devil's in the details, I'm afraid. Email templates, like everything else, can only see what's already saved to the database. If you check out the Triggers and Order of Operation documentation, ...
sfdcfox's user avatar
  • 497k
0 votes

Cannot create a package version with Flexipage of type EmailTemplatePage

Lightning Email Templates are currently not supported for 2GP packaging, only for 1GP. https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/packaging_packageable_components.htm#...
Patrick Speranza's user avatar

Top 50 recent answers are included