Share via

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

Chahat Taneja 0 Reputation points
Aug 1, 2023, 6:28 AM

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.
13,416 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,322 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    Aug 9, 2023, 8:25 PM

    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,315 Reputation points
    Aug 11, 2023, 2:35 PM

    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.