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

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
    68,697 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
    68,697 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

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