Unable to Download latest version of excel from SharepointOnline

Copper Contributor

I am using graph api to download file from sharepoint online but I am not getting the latest version.

Below is my scenario :-

1. Open excel file in sharepoint using graph api.

2. Populate it with data.

3. At this point sharepoint online automatically creates a version of the file.

4. Download file through graph api,  here I am getting just an empty file. However if I add 30+ sec delay in the code then I am getting the file with data.


Is there a way to avoid the delay ? (or) Do I need to disable automatic versioning in the sharepoint ?

1 Reply
I have the same problem. Did you manage to solve it?