Delta does't work in AzureChina

test wps 1 Reputation point
2020-10-29T02:27:57.183+00:00

in my application, i try to login account with Azure China 21Vianet.
First, i login success with MSAL,
then i try to load data from server with

https://microsoftgraph.chinacloudapi.cn/v1.0/me/mailFolders/microsoft.graph.delta

later,i get 400:Bad Request error, and the message

{
      "error": {
        "code": "ErrorInvalidIdMalformed",
        "message": "Id is malformed.",
        "innerError": {
          "date": "2020-10-28T11:18:25",
          "request-id": "9a6b40af-c64d-4409-b680-6beb6a85d41d",
          "client-request-id": "a9e73033-5341-46f0-a9ce-4fbdc1a8fd3e"
        }
      }
    }

Doesn't the AzureChina server support the mailFolders Delta?
Or has another way to make it work?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,911 Reputation points Microsoft Employee Moderator
    2020-10-29T22:33:46.143+00:00

    @test wps
    Thank you for your question!

    • Has that call ever worked before? If so, when was the last time it worked?
    • Can you try changing your URL from:
      "https://microsoftgraph.chinacloudapi.cn/v1.0/me/mailFolders/microsoft.graph.delta" to "https://graph.microsoft.com/v1.0/me/mailFolders/microsoft.graph.delta"

    Looking through the Get mailFolder API documentation and testing this out myself, I found that if I ran the same url you did, I got a 401 error rather than 400:

    https://microsoftgraph.chinacloudapi.cn/v1.0/me/mailFolders/microsoft.graph.delta
    36165-image.png

    However, when I changed the URL from "microsoftgraph.chinacloudapi.cn" to "graph.microsoft.com" I was able to make a successful call.

    https://graph.microsoft.com/v1.0/me/mailFolders/microsoft.graph.delta
    36087-image.png

    I hope this helps! If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.


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.