function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shubham Bansal 45Shubham Bansal 45 

Can we create a dynamic table in HTML or custom email template?

I have a requirement for which I have to send Some opportunity field data and create the table for that data. Firstly I use vf email template to create the table But now because  I have to send a part of that data to another recipient too, my what id logic is not working with the other recipient part.

So I am thinking to call Html or custom instead of vf template. Is that possible to create to dynamic table in Htm and custom email templates?


Thanks in Advance
PriyaPriya (Salesforce Developers) 

Hi Shubham,

This below link may help you to create the dynamic HTML table in apex class :- 

https://developer.salesforce.com/forums/?id=906F0000000D8mIIAS
 

Please mark as Best Answer so that it can help others in the future.

Regards,

Priya Ranjan