Hi there,
On Contentful website, I would like to filter by a field that is/is not null.
Is that possible?
Hi there,
On Contentful website, I would like to filter by a field that is/is not null.
Is that possible?
Hi @kennedy,
This is not a possibility directly through our Web Interface, but you could do that using our Delivery or Management APIs with the existence parameter:
That’s something I’ve needed on a number of occasions too and have previously enquired about. @gabriel is it it a query you get a lot and is there any prospect of it making it onto the UI roadmap?
Any chance this will be implemented in the future? I’ve had a lot of use cases for this…
BTW, for anyone getting here via a desperate google search, here’s my workaround:
clients
)entries
request (should have content_type={client}
as URL param)&{field you want to filter}[exists]=true
to the URL paramsIn the end, your URL should look something like this:
https://api.contentful.com/[...]/entries?content_type=client&access_token={access token}&fields.company[exists]=true
(where client
and company
are examplary values)
BTW you can get an access token for this kind of request from the authorization request header of the entries
request (omit the Bearer
keyword)
Hi @lukas.mueller, @scott.hogan. Since it seems this feature is interesting, I will forward this request to our Product team and keep you updated in this post.
Any updates on if this has been implemented in the web UI?
it should not be too difficult for your engineering team to add an “is empty” option to the data-search-filter-role=“operator” list - the lack of this makes it very cumbersome to work with large amounts of data.
Any news on this? Our Editors would love to be able to do this as the need to find entries where certain fields do/don’t have content has come up several times.
This is sorely lacking, please prioritize this feature
Any news on this? We also would love to use functionality like this.
Adding my voice to this. Please add this feature.
We’d use this feature all the time at Notion.
Any update on this? It is hard to understand how this is not an option…
I use this little trick. Add the field to the grid, then sort by that field. The records with that field empty should be at the top. Sorting with boolean (yes/no) empty value is always at the bottom of the grid, so you will have to page to end.
@dlam you geniiuuus!!