Graph API - chatMessage: delta is failing fir subsequent calls

Shubham Maheshwari 25 Reputation points
2023-02-27T21:16:42.2566667+00:00

While making the delta API call to fetch all chat messages in a channel, the subsequent calls made with the @odata.nextLink fails with the following error:

{
    "error": {
        "code": "BadRequest",
        "message": "Parameter 'DeltaToken' not supported for this request.",
        "innerError": {
            "date": "2023-02-27T21:12:07",
            "request-id": "8ac6c5cf-13cb-4ab3-b963-e1993bc37b39",
            "client-request-id": "8ac6c5cf-13cb-4ab3-b963-e1993bc37b39"
        }
    }
}

The API call made is:

https://graph.microsoft.com/v1.0/teams/{{team-id}}/channels/{{channel-id}}/messages/delta?$top=2

Also, if I am giving any value greater than 2 for the $top OData Query parameter, the API fails with the error:

{
    "error": {
        "code": "BadRequest",
        "message": "Invalid request. Delta query is not supported by this resource.",
        "innerError": {
            "date": "2023-02-27T21:15:16",
            "request-id": "402e194f-7ea7-408a-a8c9-c41503a67015",
            "client-request-id": "402e194f-7ea7-408a-a8c9-c41503a67015"
        }
    }
}

I have followed the documentation: chatMessage: delta for this.

Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
{count} vote

Accepted answer
  1. Anonymous
    2023-02-27T23:57:02.4733333+00:00

    Hello @shubham maheshwari,

    Thanks for reaching out.

    I am unable to repro the issue from my side. As per the GitHub thread, it seems to be a bug.

    I would recommend you raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.


0 additional answers

Sort by: Most helpful

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.