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

Odata Filter Null

Does anyone know how to use an odata filter on a SharePoint Get Items action to filter out items with a null value in a text/string column?

 

I have tried: text_x0020_field ne ''

 

But that does not seem to work - what is the correct approach?

23 REPLIES 23
takolota
Super User
Super User

Hi all,

This seems to consistently work if I include multiple variations of null as the filter query.
All not null.png

 

 

Also if this doesn't work and you don't care about the flow taking an extra 10-60 seconds, then you can try using the Filter array action after the Get items, put the "value" dynamic content from Get items into the *From field and put the following into the advanced mode formula field:

To get items that are not null…

@not(or(or(equals(item()?['Insert Column Here'], ''), equals(item()?['Insert Column Here'], 'null')), equals(item()?['Insert Column Here'], null)))

 

To get items that are null…

@(or(equals(item()?['Insert Column Here'], ''), equals(item()?['Insert Column Here'], 'null')), equals(item()?['Insert Column Here'], null))

 

LCF
New Member

What is working for me is:

LCF_0-1644266865392.png

not equal '' seems to work, meanwhile, eq null or ne null is not working

Tried all the variations too..

 

Mohandar
Helper I
Helper I

do not use expression null  just type word null  like  following line 

(NewKYPTALLog eq null) 

Jaryd12
New Member

FYI -  A space in your column name will cause an issue.  

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (4,143)