I have a bot that accepts a Data Table as an input. I need to loop through the Data Table and get both the column names as well as the cell values so I can craft a JSON body. Getting the cell values is straightforward however I cannot figure out how to get the column names. Any tips?
Solved
How to get Column Names from Data Table

Best answer by jackson
are you sure the data table is getting passed in with column names? this may not be very eligant but if you write the file to a csv or txt file and the open the file without the “contains header checked” then the first record will contain the column names.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.