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 / Help in writing expres...
Power Automate
Answered

Help in writing expression

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have working on a flow where I am using Get row by ID . I want to fetch a value from that output and use it in a condition. How to write expression to fetch that value. 

 

The output from Get row by Id is as below.

 

Vijayashri1_0-1631294466390.png

 

I tried using expression

outputs('Get_a_row_by_ID_6')?['statuscode@OData.Community.Display.V1.FormattedValue']. but this is not working . Can someone help me

 

Thanks.

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I used outputs('Get_a_row_by_ID_6')?['body/statuscode@OData.Community.Display.V1.FormattedValue'] which is fetching the right value.

     

    Vijayashri1_0-1631302878733.png

     

    but the condition is not working as expected. 

  • Verified answer
    Expiscornovus Profile Picture
    33,750 Most Valuable Professional on at

    Hi @Anonymous,

     

    Can you add the Body part to the expression?

     

    Try this expression instead:

    outputs('Get_a_row_by_ID_6')?['body/statuscode@OData.Community.Display.V1.FormattedValue']

     

  • Expiscornovus Profile Picture
    33,750 Most Valuable Professional on at

    Hi @Anonymous,

     

    I think you need to switch the OR to an AND in your condition to get it working.

  • MSDynamic Profile Picture
    Microsoft Employee on at

    Hi! Is that '?' syntax used to retrieve the value from the JSON key?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard