msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

Regression: The '$filter' parameter value is not supported for 'Messages' resource

Open kadukf-outreach opened this issue 2 years ago • 2 comments

Describe the bug A clear and concise description of what the bug is. Delta sync on the resource 'Messages' doesn't support $filter. We use this feature for more than a year and it stopped to work on my email account.

Example:

https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$filter=receivedDateTime+ge+2022-10-05T10:07:09Z

Results in:

{
    "error": {
        "code": "ErrorInvalidUrlQuery",
        "message": "The '$filter' parameter value is not supported for 'Messages' resource; only a value of 'receivedDateTime ge value' is supported."
    }
}

To Reproduce Steps to reproduce the behavior:

curl 'https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages/delta?$filter=receivedDateTime+ge+2022-10-05T10:07:09Z' \
  -H 'Accept: */*' \
  -H 'Authorization: Bearer .... ' \
  --compressed

Expected behavior It should follow the contract: https://learn.microsoft.com/en-us/graph/delta-query-messages#use-query-parameters-in-a-delta-query-for-messages

Screenshots If applicable, add screenshots to help explain your problem.

image

kadukf-outreach avatar Oct 05 '22 11:10 kadukf-outreach

Hey @kadukf-outreach,

Any chance you can still replicate this? From my end the query works without issue on the Graph Explorer

andrueastman avatar Oct 07 '22 06:10 andrueastman

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

ghost avatar Oct 15 '22 09:10 ghost

It looks like the issue was fixed or so. Closing the ticket.

kadukf-outreach avatar Oct 17 '22 09:10 kadukf-outreach