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 for comparison

(0) ShareShare
ReportReport
Posted on by 12

Hello,

 

While I'm trying to use a property as a value of a DataTable (made by DataTable action), I'm getting the below error.

 

Actions

pkour_0-1716546135119.png

DateColumn's value returns 1 at first action.

 

Error Message

pkour_1-1716546206490.png

 

Any advice please? Thanks in advance.

 

I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,556 Super User 2026 Season 1 on at

    Can you make sure that DateColumn -variable is  Numberic value:

    eetuRobo_1-1716548449617.png

    not Text value

    eetuRobo_0-1716548408352.png

    If it is Text value then use Convert text to number -action and name the produced variable DateColumn and try again. This is because if you add text value to the column then it should be the columns name. If it is numerical value then it is the index as with your case I assume.

    eetuRobo_2-1716548516110.png

     

  • Verified answer
    VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @pkour ,

     

    Please find the solution.

    As per my understanding,You cant call the Column in DataTable as you have done.Alternatively you can try as below.

    VishnuReddy1997_1-1716569637757.png

     

    Code:

    Variables.RetrieveDataTableColumnIntoList DataTable: ExcelData ColumnNameOrIndex: $'''Value''' ColumnAsList=> ColumnAsList
    SET DateColumn TO ColumnAsList[0]

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

     

     

  • pkour Profile Picture
    12 on at

    Both of them combined and returned the correct value.

    @eetuRobo @VishnuReddy1997 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard