cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Corissandageri
Post Patron
Post Patron

Isblank, don't include in email

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mahoneypat
Super User
Super User

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

View solution in original post

3 REPLIES 3
mahoneypat
Super User
Super User

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

View solution in original post

v-albai-msft
Community Support
Community Support

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

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,697)