Hi all,
For converting Excel datatable into a table in body of email, you can try this out:
- Read the datatable ie dt.
- Count the rows and columns of the datatable → dt.rows.count and dt.columns.count.
- Create a html document with a table open tag using uipath (use activity write/append line to create a .html file and append the lines).
- Create a dynamic table using tag with the datatable content. → use for each activity and append line to the .html file.
- close the html tags.
- send the html file as body in the Outlook mail activity. (click on ishtml check box)
Thank you
Nitin Safaya