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 / Conditional Logic with...
Power Automate
Answered

Conditional Logic within Email Body

(0) ShareShare
ReportReport
Posted on by 302

I have a question that is "are there additional legs?" 

@{outputs('Get_response_details')?['body/r1d7cba57a9e84879a3cb92a956564e56']}

If this text = Yes

then I would like it to insert 

@{outputs('Get_response_details')?['body/r987b9833632444658af76d3b3e3ea20c']}

and 

@{outputs('Get_response_details')?['body/r7e4fa2981b7042f5ade3aa63828b60c3']}

into the body of the email if not just null

 

Is this possible?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,110 Most Valuable Professional on at

    The easiest way to do that would be to add a compose action just before the email and put an if() function in the Compose to build out a string that either contains the two additional items or is empty. Then use that compose in the email body.

  • honganhuynh1 Profile Picture
    302 on at

    Interesting

    for example if the question are there additional legs is Yes


    I would like the text "Test1" followed by

    @{outputs('Get_response_details')?['body/r987b9833632444658af76d3b3e3ea20c']}

     

    is that possible?

  • Verified answer
    Pstork1 Profile Picture
    69,110 Most Valuable Professional on at

    Put something like this as a formula in the Compose.

    if(additionalLegs='Yes',outputs('Get_response_details')?['body/r987b9833632444658af76d3b3e3ea20c'])

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
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard