Forum Discussion
henryg124
Sep 27, 2024Copper Contributor
[Graph API] Filter contacts query by emailAddresses
Hi, https://developer.microsoft.com/en-us/graph/graph-explorer I am trying to run a GET query on the `contacts` endpoint, passing in a filter on the `emailAddresses` sub-property, with the ai...
VasilMichev
Sep 27, 2024MVP
Not supported, as mentioned in the documentation: https://learn.microsoft.com/en-us/graph/api/user-list-contacts?view=graph-rest-beta&tabs=http#optional-query-parameters
Note that you can use $filter, any, and the eq operator on only the address sub-property of instances in an emailAddresses collection. That is, you cannot filter on the name or any other sub-property of an instance of emailAddresses, nor can you apply any other operator or function with filter, such as ne, le, and startswith().
You can always filter them client-side.
Note that you can use $filter, any, and the eq operator on only the address sub-property of instances in an emailAddresses collection. That is, you cannot filter on the name or any other sub-property of an instance of emailAddresses, nor can you apply any other operator or function with filter, such as ne, le, and startswith().
You can always filter them client-side.