web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get value from object ...
Power Automate
Answered

Get value from object variable by another variable

(0) ShareShare
ReportReport
Posted on by 11

SomeDataTable is a datatable.

SomeColumnName is a String.

 

Is it possible to get value like

For Each SomeDataRow in SomeDataTable

 

%SomeDataRow["%SomeColumnName%"]%

 

 

 

I have the same question (0)
  • Tejashree_G Profile Picture
    43 on at

    if i'm wrong then correct me, you want to read excel row one by one column wise ?

  • obarisk Profile Picture
    11 on at

    Yes. I'm trying %SomeDataRow[%SomeColumnName%]%

  • obarisk Profile Picture
    11 on at

    %SomeDataRow[SomeColumnName]% pass the code checking, but runtime error as

     

    Could not found column or attribute '"ColumnName"'.

     

    Quote of quote String. The behavior is mysterious.

  • Tejashree_G Profile Picture
    43 on at

    as per my understanding, you will need to first read your excel row's and column then you will get " excel data " variable , 2. apply for each action and use "excel data" variable so you will get current item variable (whole row's in data table ) 3. use anther for each under the 1 st for each loop and use "current item " variable, use display msg box to check your output.

  • Verified answer
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Put it like this:

     

    %SomeDataRow[SomeColumnName]%

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard