hello Guys,
I am facing below problem related to Email-Body,
I want to create Email-Body dynamically not static,
my scenario is,
I want to send some records to another person,i.e. Top 10 records.
and i an retrieving records from database but IF in DB there is present only 5 records then in Template it is replacing only 5 records and other 5 display templates hardcoded value,
so i want to avoid this things,
My templated will be decided on Database records when my record is 5 then it will fill in email body with 5 records and if 10 then 10 record table.
Please suggest me what i do in that case.