Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Help in writing expression

(0) ShareShare
ReportReport
Posted on by

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.

 

  • MSDynamic Profile Picture
    Microsoft Employee on at
    Re: Help in writing expression

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

  • Expiscornovus Profile Picture
    31,648 Most Valuable Professional on at
    Re: Help in writing expression

    Hi @Anonymous,

     

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

  • Verified answer
    Expiscornovus Profile Picture
    31,648 Most Valuable Professional on at
    Re: Help in writing expression

    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']

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Help in writing expression

    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. 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow