Add Header to an existing data table

Hello,

I have a datatable without headers.

I want to add an header to an existing data table. I should not use for each as the data is more.

Please help.

Thanks & Regards,
Sateesh.

Hey!

Use Add data column Activity

Regards,
NaNi

Hey,
you can use Build Data Table to store the Headers and make a output variable and store the data in same data table
Thanks

1 Like

Hello @satish_kumar
You can find a similar post below. My suggestion is you can write the datatable to an excel template which is having only Header values and uses Append range activity.

Hey @satish_kumar

Do you have the list of headers to use ?

Thanks
#nK

but the column will be added not the header.

Yes I do have the headers

Yes, this would help but can i do that without creating a datatable itself.

Then it can be done bro with linq