Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

 

 

  • R Bakker Profile Picture
    725 on at
    Re: Isblank, don't include in email

    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

  • v-albai-msft Profile Picture
    on at
    Re: Isblank, don't include in email

    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

  • Verified answer
    mahoneypat Profile Picture
    1,720 on at
    Re: Isblank, don't include in email

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,017 Most Valuable Professional

Leaderboard