Insert Datatable in Create HTML Content

Hi guys,

I am trying to add a datatable within the body of a email response. I used the Create HTML Content to achieve this. The datatable once sent via emai has got headers removed.

There have been similar topics related to this and I’m trying to use the solution provided in this link: Post HTML email with datatable but doesn’t contain header - Help / Studio - UiPath Community Forum

image

Unfortunately i get an error saying DataColumn is ambiguous. Not sure how to fix this, has anyone come across this before? Any suggestions would be greatly appreciated. Thank you

just use the fully qualifying name

dr.ItemArray = dt.Columns.Cast(Of System.Data.DataColumn).Select(Function(dc) dc.ColumnName).ToArray

thank you it works as expected now!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.