Hi All,
I'm using the below rule (rule containing HTML code) to generate a dynamic table inside the email body. But the tabe format is not working as expected.
Code:
a!localVariables( local!taskData: rule!HD_getTaskDetailsByAssignee(activestatus:1, assignee:ri!assignee).data, concat( { "<h3> Tasks Due-today </h3>", "<p><br><table style=""width:100%; border:1px solid black"">", rule!HD_htmlCreateTableRow( values: { "Legal Entity Name", "Legal Entity ID", "Line Of Business", "Reporting Type", "Task Name", "Task due date", "Task generated date", "Task Link"
}, isBold: true ), a!forEach( items: local!taskData, expression: { concat( "<tr><td>", fv!item.c41, "</td><td>", fv!item.c35, "</td><td>", "</td><td>", fv!item.c39, "</td><td>", "</td><td>", fv!item.c36, "</td><td>", "</td><td>", fv!item.c41, "</td><td>", "</td><td>", fv!item.c47, "</td><td>", "</td><td>", fv!item.c50, "</td><td><a href=", cons!CCAR_ENV_USER_TASK_LIST_URL, ">Task Link</a>", "</td></tr>" ) } ), "</table></p>","<h3> </h3>"},))
Table format Screenshot:
Thanks
Discussion posts and replies are publicly visible
If you save the text output of the rule to a new .html (text) file then open that in a web browser, does it display correctly there? That's the first thing I'd suggest (if you haven't already) in terms of troubleshooting this.