Microsoft Graph Files API - not downloading the latest version of the file

Chahat Taneja 0 Reputation points
2023-08-01T06:28:39.63+00:00

We have a requirement in our application to download the word document. And we are trying to do so using following api-

api/drives/{drive-id}/items/{item-id}/content

The problem is that if the file is recently updated, the graph api does not gives the updated file.

We have also observed in the graph explorer that there is certain amount of delay before the api "api/drives/{drive-id}/items/{item-id}" returns the updated details.

Is there a way to get the updated document?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,875 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,076 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,305 Reputation points
    2023-08-09T20:25:12.7233333+00:00

    Hello Chahat Taneja,

    Thanks for reaching out? How much delay are you experiencing for the updated items appearing when you run the Graph query? And what changes were made to the items?

    Thanks.


  2. TH-4749-MSFT 3,305 Reputation points
    2023-08-11T14:35:37.9566667+00:00

    Hello Chahat Taneja,

    Good day. To assist you better kindly provide the information requested in my previous post.

    Thanks.

    0 comments No comments

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.