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

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
    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

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard