web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamic Content in an ...
Power Automate
Unanswered

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,681 Super User 2025 Season 2 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,681 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard