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 / Show field values in o...
Power Automate
Unanswered

Show field values in outlook email only if condition satisfies

(0) ShareShare
ReportReport
Posted on by 388

Hi,

 

I have a power automate email flow and it's sending email when item is created in sharepoint list. In email, all list column values are in the email body. But I want to show column values only if condition satisfies.

 

Ex: If Column 1 value is greater than 75% then only I want to show in email body.

If column 2 string contains "xxxx" then only show in email body otherwise hide....etc

 

Is this possible? If yes, how to achieve this? 

 

In email

Categories:
I have the same question (0)
  • vivekpande18 Profile Picture
    894 Super User 2024 Season 1 on at

    Hi @aaedla ,

    Yes this is possible by dynamically creating the html body content for the email. 

     

    1- create thel array of the internal name of the columns which you want to add conditionally. 

    2. Loop through alll the internal names and create the expression to get the column value. 

     

    Thanks 

    Vivek pande

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @aaedla ,

     

    For those columns which need to check conditions, you can create a number of variables with if function in their expressions.

     

    E.g. Column1

    variable1:

    if(greater(triggerOutputs()?['body/Column1'], 0.75),triggerOutputs()?['body/Column1'],'')

    vjefferni_0-1659519707091.png

     

    You can use these variables in body of Send an Email action.

     

    Best regards,

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard