@ChrisG24
If I grasp your requirement accurately, you have data stored in a datatable, and you wish to retrieve all the data along with their respective column names.
In that case, I believe I've achieved a similar objective but with a different approach. Here are the steps I took:
1. I read an Excel file that includes all the account details.

2. Using the "Launch Excel and Read All Values from Excel" action, I extracted the data from the Excel file and stored it in a datatable named "ExcelData."
3.1 In a for-each loop, I iterated through the account details and displayed the column names. Since I know the column names and their order, I hardcoded them in the message box. Additionally, I mentioned the corresponding values by referencing their index value in the message box.
Flow Details:




Code:
Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''Y:\\Accounts_Details.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
LOOP FOREACH CurrentItem IN ExcelData
Display.ShowMessageDialog.ShowMessage Title: $'''Account Details''' Message: $'''Full Name is %CurrentItem[0]%
First Name is %CurrentItem[1]%
Last Name is %CurrentItem[2]%''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
END
Excel.CloseExcel.Close Instance: ExcelInstance
--------------------------------------------------------------------------------------------------------------
Certainly! If your objective differs from what I've described, please provide more details or context regarding your requirements.
Also If you could share screenshots of your datatable or any relevant information, I'd be happy to assist you further and provide guidance based on the specifics of your situation.
Thanks,
Deenu
------------------------------------------------------------------------------------------------------------------------
If I've resolved your query, please consider accepting it as the solution and giving it a thumbs up to help others find answers faster.