Having an issue with Data Table format in HTML email…
I’m using Create HTML Content to insert a Data Table into my email as it needs to be dynamic as could have 1 - 10 rows etc.
I can get it all working, but my email looks odd, its not bringing through the headers of the DT, so its showing the first row of Data in the email table as bold and central (like a header) when it is data, not header etc.
I wouldn’t mind seeing the headers of the DT in the email or not seeing them and only seeing the data… I just can’t seem to find anything about formatting it (my resulting email body as below)…
its a behaviour longer reported to UiPath.
Just insert a new line with the header names at the first position from the rows and use this fixed datatable.
But when any Column is not of datatype String, this workaround will not word, due we cannot place the header name e.g. into a int32 column.
So, in such scenarios we can generate the table block with data by our own and the place it within the template afterwards
Table HTML generation
own custom modelling / code
3rd Party Activities which supports on this e.g. Marketplace
Try writing DTEmail1 to an excel file and read that excel file. Please uncheck the Add Headers option in the properties Panel of Read Range Workbook activity and say the output to be dt.
Pass dt datatable in Create HTML Content. This should help you get the table in email with Headers also.