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://video2.skills-academy.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.

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
737 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,271 questions
PowerPoint
PowerPoint
A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
247 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,657 questions
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