Notifications
Announcements
Table name: excelData
I have a "For each" loop with "excelData" as input. For the first iteration I should be able to access the cell: "123". How can i accomplish that? I have used the following code without any luck.
%CurrentItem[1][0]%
If you loop through a data table, then CurrentItem represents a data row. So there are only columns you can access.
%CurrentItem[0]% for the first column value
https://docs.microsoft.com/en-us/power-automate/desktop-flows/variable-data-types#advanced-data-types
Hi,
Thanks for a quick reply. I realized the fact that you only deal with one row when you do a loop right after posting the message. So for the current example you can access the mentioned value with on of these lines, Right?
- %CurrentItem['Code']%
- %CurrentItem[0]%
Don't think that CurrentItem will hold the name of the columns, so if you want to access the column values by name then you need to loop through the table using the row index %ExcelData[0]['Code']% instead of for each.
https://docs.microsoft.com/en-us/previous-versions/troubleshoot/winautomation/process-development-tips/variables/how-to-retrieve-list-item-datatable-cell
I think they will hold the name of the columns 🙂
You're right, the column headers are carried over
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 522 Super User 2025 Season 2
Tomac 364 Moderator
abm abm 243 Most Valuable Professional