cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TesDA
Level: Powered On

function: equals null or is null

In the below function in flow, how do I get the first part of the if statement to basically say, if the result is blank do this...

 

if(
substring(body('Html_to_text'), 0, indexOf(body('Html_to_text'), '---+---')) = null, 
body('Html_to_text'),
substring(body('Html_to_text'), 0, indexOf(body('Html_to_text'), '---+---'))) 

 

When I add the = null it errors out - "The expression is invalid"

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: function: equals null or is null

Hi @TesDA 

 

if(equals(substring(body('Html_to_text'), 0, indexOf(body('Html_to_text'), '---+---')),null),body('Html_to_text'),substring(body('Html_to_text'), 0, indexOf(body('Html_to_text'), '---+---')))

Can you try this expression? (please check the brackets. I might have missed something there)

 

Basically you have to wrap the condition for '=' in the equals() function. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Super User
Super User

Re: function: equals null or is null

Hi @TesDA 

 

if(equals(substring(body('Html_to_text'), 0, indexOf(body('Html_to_text'), '---+---')),null),body('Html_to_text'),substring(body('Html_to_text'), 0, indexOf(body('Html_to_text'), '---+---')))

Can you try this expression? (please check the brackets. I might have missed something there)

 

Basically you have to wrap the condition for '=' in the equals() function. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

TesDA
Level: Powered On

Re: function: equals null or is null

Worked perfectly! Thank you!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 309 members 1,675 guests
Please welcome our newest community members: