Have a look on the thread
Thank you for your reference. It helped me.
This converts a datable to a horizontal table (labels across the top)…
Breakdown of that group of activities:
You can use create html content activity. Plz check the below video.
How to use Create HTML Content activity to add tables and images to email body in UiPath? | AutoBot