cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Corissandageri
Responsive Resident
Responsive Resident

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
Solution Sage
Solution Sage

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





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Solution Sage
Solution Sage

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





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about the Power Platform, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

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