cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

How to get rows from SQL server filtering a field with null?

Hello!

 

Is it possible to filter SQL rows from SQL Server by a column containing a null value? 

 

For example:

input_reason_code eq 1 and output_reason_code eq null 

 

Both input and output reason codes are numeric but accept a null value. How to filter that?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: How to get rows from SQL server filtering a field with null?

Hi @Anonymous,

 

 

Yes, the filter Query under SQL Server Get Rows would work with the null value.

 

Just copy and paste the formula you specified under the Filter Query part of the SQL Server Get Rows Action, then you should be able to filter the table with the rows expected:

input_reason_code eq 1 and output_reason_code eq null 

For Example:

79.PNG

Regards,

Michael

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

View solution in original post

1 REPLY 1
Community Support
Community Support

Re: How to get rows from SQL server filtering a field with null?

Hi @Anonymous,

 

 

Yes, the filter Query under SQL Server Get Rows would work with the null value.

 

Just copy and paste the formula you specified under the Filter Query part of the SQL Server Get Rows Action, then you should be able to filter the table with the rows expected:

input_reason_code eq 1 and output_reason_code eq null 

For Example:

79.PNG

Regards,

Michael

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

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,260)