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 / Isblank, don't include...
Power Apps
Answered

Isblank, don't include in email

(0) ShareShare
ReportReport
Posted on by 725

Hi everyone

In my app I have a function that I can send an email order that looks like the following, the sample is fake data but real formatting, I am currently not using a flow:

 

Hello Supplier
Can I please order
Qty: 5 Code: Fz382-5XL Description: Bib overall
Qty: 10 Code: PF49602 Description: Alcohol Large Wipes
Qty: 3 Code: MOHAYUNSX-11 Description: Safety Food Gumboot

 

What i would like is if the supplier has given us an account number, that it shows up in the email like the following.

 

Hello Supplier

Can I please order
Qty: 5 Code: Fz382-5XL Description: Bib overall
Qty: 10 Code: PF49602 Description: Alcohol Large Wipes
Qty: 3 Code: MOHAYUNSX-11 Description: Safety Food Gumboot

 

Our account number XXXXXXX

 

But some of our suppliers don't give us an account number, and in that case I don't want the words "Our account number" Is there a way I could make this happen automatically? Currently I am just using an email connector and concat the list.

 

 

Categories:
I have the same question (0)
  • Verified answer
    mahoneypat Profile Picture
    1,720 on at

    Instead of having text and a dynamic expression for account number, you can check if there is an account number first with an If.  Put your account number dynamic expression in place of <expression>.

     

    If(Len(<expression>)>0, "Our account number - " & <expression>, "")

     

    Regards,

    Pat

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @Corissandageri ,

    Are you using the Office365Outlook connector?

    If yes, the solution provided by @mahoneypat is correct, but I want to add more detailed information about how to add this into your formula. You cannot directly paste this formula into your code.

    I did a test, using Textinpyt2 to keep the account number, below is my formula(remember to replace to your Concat formula):

    v-albai-msft_0-1616478099758.png

     

    Email with account number and without account number:

    v-albai-msft_1-1616478099761.png

     

    v-albai-msft_2-1616478099763.png

    Best Regards,

    Allen

  • R Bakker Profile Picture
    725 on at

    Hi Pat

    This works good, I put your formula in a text input and then my email that I am sending references that text input to include it in the email. Having the text input with no text does not cause any problems with the email. 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

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