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 / Setting a property as ...
Power Automate
Answered

Setting a property as a variable

(0) ShareShare
ReportReport
Posted on by 19

Hi Everyone,

I have a data table which I want to extract only the data from 1 specific column (Tracking No.).

I tried to extract it with "For each" loop, but the problem is that I have to specify the property.

I tried to set a variable for the property as a "0" and then in the "For each" loop I will again set a variable for +1, so it can always extract the next property, but when I try to set the value to iterate, It gives me a "Syntax error".

%ExcelData[%Property%]['Tracking No.']%

Any help how can I use the variable inside the value to iterate?

Thank you

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

    All % signs come in pairs, so your expression is interpreted in two parts:

    %ExcelData[%Property%]['Tracking No.']%

     

    This is obviously not what you want. You have to construct the expression with just one pair of %s:

    %ExcelData[Property]['Tracking No.']%

     

    Words inside expressions are (almost) always used as variable references, while text between quotation marks identifies columns.

  • MayShmulevich Profile Picture
    19 on at

    Hi Henrik, thank you for you reply!

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard