cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Null value preventing email from running

I've gone through several different discussions and tried a few different things but I'm still not able to get my workflow to run.

I have about 5 multiple lines to text columns and 4 of them would normally not be filled out until a different part of the review process later on.

I have a few compose items set up with a replace so that the information shows up correctly in the email,  however the email will only send if there is text entered.   Hoping there is a way to either enter default text or a workaround.  I tried using length but I think I may be missing something somewhere.

VERY new to formulas.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Null value preventing email from running

Hi @DCNehs 

 

Below is the expression you need to use.

 

replace(coalesce(outputs('ComposeInterimAction'),''),variables('EnterKey'),'<br>')

 

 

@efialttes , I had a conversation with @DCNehs  regarding another post and this was part of the fix. Thanks @efialttes  for the update.

 

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User
Dual Super User

Re: Null value preventing email from running

Hi!

Default text in case of null?

coalesce() WDL based expression should do the trick

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#c...

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Super User
Super User

Re: Null value preventing email from running

Hi @DCNehs 

 

Below is the expression you need to use.

 

replace(coalesce(outputs('ComposeInterimAction'),''),variables('EnterKey'),'<br>')

 

 

@efialttes , I had a conversation with @DCNehs  regarding another post and this was part of the fix. Thanks @efialttes  for the update.

 

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

Highlighted
Dual Super User
Dual Super User

Re: Null value preventing email from running

@abm 

No problema. My first response was just a general recommendation.

Guys like you make Power Automate community awesome. Thanx for providing the detailed expression!

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Helper IV
Helper IV

Re: Null value preventing email from running

thank you @abm and @efialttes !  This community is amazing!

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (8,507)