Skip to content

Can't filter result with businessPhones field #47

Answered by YannickRe
Niko-F asked this question in Q&A
Discussion options

You must be logged in to vote

I'm afraid that will not be possible (or at least I have no idea on how to achieve this). mobilePhone is a string property, and that's why mobilePhone ne null works, unfortunately the businessPhone property is a String collection/array.
This would require a filter that looks more like businessPhones/any(p:p ne null), but this gives the following response:

Using 'ne' inside 'any' clause is invalid. Suggestion: consider using the 'not' operator instead. For example: $filter=not groupTypes/any(x:x eq 'Unified')

Trying that suggestion with businessPhones/any(p:p eq null) returns the following:

Using 'eq null' inside 'any' clause is invalid. Example: $filter=proxyAddresses/any(x:x eq null). C…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Niko-F
Comment options

@YannickRe
Comment options

Answer selected by YannickRe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants