Timeline for Validate Merge Fields on a Lightning Email Template in Apex
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 31, 2018 at 20:14 | vote | accept | shmuels | ||
Dec 30, 2018 at 2:07 | comment | added | shmuels | @gNerb It looks like I will have to go with your solution of parsing the body. If you add your comment as a answer I can accept it, being that you mentioned the idea of parsing first. Thank you. | |
Dec 29, 2018 at 3:00 | history | tweeted | twitter.com/StackSalesforce/status/1078848284532322304 | ||
Dec 28, 2018 at 22:18 | answer | added | Sudipta Deb | timeline score: 1 | |
Dec 28, 2018 at 21:09 | history | edited | sfdcfox♦ | CC BY-SA 4.0 |
added 8 characters in body
|
Dec 28, 2018 at 19:50 | comment | added | gNerb | @shmuels I'm not so sure, that service looks like it pulls in all fields for a given object whether or not it appears in the template. What you could do is pull in the text of the template body and parse the merge fields yourself instead of relying on SF. that way if you are missing data you can stop the email. | |
Dec 28, 2018 at 18:55 | comment | added | shmuels | @SudiptaDeb This may be exactly what I'm looking for. I will look into it and see if it works. Thank you. | |
Dec 28, 2018 at 18:53 | comment | added | shmuels | @codeyinthecloud I want to be able to throw an apex exception if the merge field is blank. I also would rather not use a separate Formula Field. Those keep adding up and make the object have a lot of extra fields. Thank you. | |
Dec 28, 2018 at 18:53 | comment | added | Sudipta Deb | May be you need to look into this documentation developer.salesforce.com/docs/atlas.en-us.apexcode.meta/… | |
Dec 28, 2018 at 18:49 | comment | added | Hemavantha Rajesh Varma Mudunu | Might not be what you want but have you looked at Error while using blank fields while sending email via lightning Activity tab | |
Dec 28, 2018 at 18:44 | history | asked | shmuels | CC BY-SA 4.0 |