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 / Dynamic Content in an ...
Power Automate
Answered

Dynamic Content in an if( ) Expression

(0) ShareShare
ReportReport
Posted on by 6

Hello! I've got a Flow that I'm using to send out an email. I'm trying to provide data from a Microsoft form and I want no data to show if a specific answer is selected. Here is how far I've gotten. (sorry for my inexpertise, im self taught and out of ideas)

 

if(equals(outputs('Get_response_details')?['body/rb07b3d582adf4b4e95ecf5bb69a8fb81'],'See Other TM List')'',outputs('Get_response_details')?['body/rb07b3d582adf4b4e95ecf5bb69a8fb81'])

 

The expression is returning "Expression is Invalid" . I know there is something wrong with this expression but I cant quite put my finger on it. 

TIA!

 

(also any classes or useful websites to learn about Power automate and expressions would be greatly appreciated.)

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,990 Super User 2026 Season 1 on at

    The expressions needs to be in this format:

     

    if(<expression>, <valueIfTrue>, <valueIfFalse>)

     

    <valueIfTrue> The value to return when the expression is true

    <valueIfFalse> The value to return when the expression is false

    For example:

     

    if(equals(1, 1), 'yes', 'no')

     

    So you need ensure you have added both the true and false values:

     

    if(
    equals(outputs('Get_response_details')?['body/rb07b3d582adf4b4e95ecf5bb69a8fb81'],'See Other TM List'),
    <valueIfTrue>,
    <valueIfFalse>
    )

     

    and I think you may have also made an accidental typing error too

    ekarim2020_0-1631735215674.png

    Ellis

     

  • Ellis Karim Profile Picture
    11,990 Super User 2026 Season 1 on at

    Free tutorials at Microsoft Learn: Get started with Power Automate

    I also highly recommend the following two Udemy courses, in the following order

    1. Microsoft Power Automate (Flow) Crash Course - 2020
    2. Master Microsoft Power Automate(Flow) Expressions in 2 hours

    You can get Master Microsoft Power Automate(Flow) Expressions in 2 hours for "free" when you complete Microsoft Power Automate (Flow) Crash Course - 2020, by posting the Udemy course completion certificate on LinkedIn and tag the author in LinkedIn! The author mentions this at the end of the course.

    The above two courses also link you to a free JSON basics course.

    Ellis

  • CyberWolf11 Profile Picture
    6 on at

    Thank you so much! 🙌

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard