Graph API Filter Error

ram ra 20 Reputation points
2025-04-25T07:38:47.56+00:00

I implemented a contact filtering feature using the Graph API, but the results are inaccurate.

Condition1) > SUCCESS

singleValueExtendedProperties/Any(ep: ep/id eq 'String 0x3001' and contains(ep/value, 'Ab'))

Response : 10 count

Condition2) > SUCCESS

singleValueExtendedProperties/Any(ep: ep/id eq 'String 0x3001' and contains(ep/value, 'Abxx'))

Response : 0 count

Condition3) > SUCCESS

( singleValueExtendedProperties/Any(ep: ep/id eq 'String 00062004-0000-0000-C000-000000000046 Id 0x8083' and contains(ep/value, 'kim')))

Response : 2 count

Condition4) > SUCCESS

singleValueExtendedProperties/Any(ep: ep/id eq 'String 0x3001' and contains(ep/value, 'Ab'))

or ( singleValueExtendedProperties/Any(ep: ep/id eq 'String 00062004-0000-0000-C000-000000000046 Id 0x8083' and contains(ep/value, 'kim')))

Response : 10 count

Condition5) > MISMATCH!!

singleValueExtendedProperties/Any(ep: ep/id eq 'String 0x3001' and contains(ep/value, 'Abxx'))

or ( singleValueExtendedProperties/Any(ep: ep/id eq 'String 00062004-0000-0000-C000-000000000046 Id 0x8083' and contains(ep/value, 'kim')))

>Response : 0 count

I was expecting 2results, but the query is returning none." "The filter should return two contacts, but instead, it returns zero.

Can you tell me how to fix it?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,605 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.