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

Looking for null value in condition

I have a simple flow that is supposed to update a row in SQL if a field is null.  I am only pulling back the ID from SQL and then looking to update records identified if one of the fields is NULL.  However, it is always throwing true at the condition and updating records even if the field is NULL.  I have tried using the null function and typing the word null or NULL but none of it works.

 

 

nullMicrosoft Flow.png

 

I found a post with this format but I don't know how to get a one line condition like this (I am always seeing the three fields like the snapshot above) AND I am not sure what the part in the [] is referencing (is that the field to check for null?)  

iffieldempty.jpg

 

How can I only update records if this field is null?

5 REPLIES 5
Community Support Team
Community Support Team

Re: Looking for null value in condition

Hi @bigeldm ,

 

Basically, if we want to determine if the field is empty, it is valid to use null.

17.PNG

The situation you are experiencing is because you set Select Query to the specified field, so Get rows will only return the value of the specified field.

Although you can apply Dynamic content of other fields, they are all null values, so the result is true.

18.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bigeldm
Level: Powered On

Re: Looking for null value in condition

So how do I determine if that one field in my select query is null or not?  I need to do the following: 

If myfield is null, update the field, if not just skip it.

 

If I understand what you are saying, the null is looking at the whole row?  I guess I don't understand that as the query is returning rows.

Community Support Team
Community Support Team

Re: Looking for null value in condition

Hi @bigeldm ,

 

You do not need to configure Select Query, use Condition to determine whether the specified field is empty, and if it is empty, update the current row.

13.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
bigeldm
Level: Powered On

Re: Looking for null value in condition

I am not at all understanding how what you are suggesting is different than what I have already done.  The following is always returning false regardless of whether the field is null or not.

nullMicrosoft Flow.png

Community Support Team
Community Support Team

Re: Looking for null value in condition

Hi @bigeldm ,

 

Only one difference-not configure Select Query:

6.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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: 490 members 5,368 guests
Recent signins:
Please welcome our newest community members: