How to view Word/PowerPoint inline comments using Graph API?

Adz 286 Reputation points
2023-03-27T12:35:48.9266667+00:00

I was wondering if it is possible to get comments for Wrod/PowerPoint files using the Graph API?

https://learn.microsoft.com/en-us/graph/api/workbook-list-comments?view=graph-rest-1.0&tabs=http

This works for Excel workbooks, but fails when I try on Microsoft Word / PowerPoint files and I get this weird error.

{
    "error": {
        "code": "UnknownError",
        "message": "{\"code\":\"InvalidRequest\",\"message\":\"Missing header Client-Request-Id. Header Client-Request-Id is not a guid.\",\"innerError\":{\"request-id\":\"00000000-0000-0000-0000-000000000000\",\"date\":\"2023-03-27T05:24:51.7989002-07:00\"}}",
        "innerError": {
            "date": "2023-03-27T12:24:51",
            "request-id": "54717360-cb54-4f5b-ad71-e6197b055eba",
            "client-request-id": "..."
        }
    }
}

I am able to get the comments using the OpenXML 2.5 SDK but this is not a viable solution as we'd have to download the contents of the files which clients do not want.

Microsoft 365 and Office Word For business Windows
Microsoft 365 and Office PowerPoint For business Windows
Microsoft 365 and Office Excel For business Windows
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-03-27T15:09:36.8+00:00

    Hello Adz,

    Thanks for reaching out!

    Currently using Microsoft Graph API, it is not possible to view Word/PowerPoint inline comments.

    Since this feature/functionality is presently not available, you can submit a request idea using feedback portal, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs. I will also upvote for you.

    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.