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 / IF Statement in email ...
Power Automate
Answered

IF Statement in email body

(0) ShareShare
ReportReport
Posted on by 143

Hi,

 

I was hoping for some help with an IF statement within an email body. I would like it to show Green Laptop + Green HW + Green Extra HW if the value for "Green_x0020_Access/Value" is equal/contains "Yes" and otherwise does not show the information.

A copy of my broken IF statement is below:

 

IF Green.PNG

 

if(equals(triggerOutputs()?['body/Green_x0020_Access/Value'],'Yes'),'Green: - [ ] Green Laptop: triggerOutputs()?['body/Green_x0020_Laptop/Value']
variables('varGreenHardware')
Any Extra Green Hardware Requested:
triggerOutputs()?['body/Extra_x0020_Green_x0020_Hardware']','No to green')
Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @notepadapp ,

     

    Please try:

    if(
     equals(triggerOutputs()?['body/Green_x0020_Access/Value'],'Yes'),
     concat(
     'Green: - [ ] Green Laptop: ',
     triggerOutputs()?['body/Green_x0020_Laptop/Value'],
     variables('varGreenHardware'),
     'Any Extra Green Hardware Requested:',
     triggerOutputs()?['body/Extra_x0020_Green_x0020_Hardware']
     ),
     'No to green'
    )

     

    Best Regards,

    Bof

  • notepadapp Profile Picture
    143 on at
    Thank you 🙂

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard