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 Apps / If statement in an aut...
Power Apps
Answered

If statement in an auto generated email in PowerApps

(0) ShareShare
ReportReport
Posted on by 46

Good morning!

 

I have Email Templates setup in HTML for all of my auto generated emails that are sent out.  I now need to add an IF statement so that notes will only be added if they are not blank and I'm not sure how to properly format the HTML in PowerApps.

 

So I only want this string to be visible if varEmailNotes is not not blank. (varEmailNotes is a global variable).

 

<p><strong>Notes from Resolving Officer: </strong>" & varEmailNotes & "</P>

 

Thank you!

 

-g

 

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    <p><strong>Notes from Resolving Officer: </strong>" & If(IsBlank(varEmailNotes),"",varEmailNotes) & "</P>

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

  • grifted5150 Profile Picture
    46 on at
    Nogueira1306,
    Sorry I think I explained this wrong and that is because I'm a newbie. I wanted the text "Notes from Resolving Officer:" and the varIiable data "varEmailNotes" to only appear if something is types into that variable text field.
    So it would only show this
    Notes from Resolving Officer: This is a test.
    In the email if there were notes added to the varEmailNotes.
    -G
     
     
  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    "If(!IsBlank(varEmailNotes),"<p><strong>Notes from Resolving Officer: </strong>" & varEmailNotes & "</P>","")

     

    Like that?

    Please be carefull with the () and the ""

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    My website!

  • grifted5150 Profile Picture
    46 on at

    Worked, awesome thank you my friend!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard