Microsoft graph api while posting comments gives missing header Client-Request-Id even though its passed

Pradeep Gopal 0 Reputation points
2024-09-21T00:00:13.1633333+00:00

When trying to post comment on a word document using the microsoft workbook comments api getting https://graph.microsoft.com/v1.0/sites/{siteid}/drive/items/{itemid}/workbook/comments

Error 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":"2024-09-20T16:32:57.3020683-07:00"}}

Tried from Javascript,Explorer and Java .Everywhere its same issue.

Microsoft 365 and Office Development Other
Microsoft 365 and Office SharePoint Development
Microsoft Security Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 3,620 Reputation points Microsoft External Staff
    2024-09-23T06:52:27.0166667+00:00

    Hello Pradeep Gopal,

    Thank you for reaching out to Microsoft Support!Using the Graph API, you cannot post a comment on a Word document as this feature is not supported at the moment. Please refer to the Q&A.

    If you are looking to post a new comment in an Excel workbook using the Graph API, this is also not possible. However, you can post a reply to an existing comment in an Excel workbook using the Graph API. Please check documentation. Also please see the screenshot below for reference.image (25)

    Hope this helps.

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


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.