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

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
Super User III
Super User III

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

Power Automate Video Tutorials

View solution in original post

4 REPLIES 4
Super User III
Super User III

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!



Super User III
Super User III

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

Power Automate Video Tutorials

View solution in original post

@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!



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

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (72,629)