1

I have used Python script with REST APIs to download and upload files from/to SharePoint till now. It was working fine. However due to certain constrains I need to switch to MS graph APIs to download and upload files. I have observed Graph APIs doesn't download all files from SharePoint. for e.g. SharePoint folder contains 228 files, where as only 200 files are getting download & latest files are not getting download.

How to solve this?

My file download URLs is something like

file_download_url =  f"https://graph.microsoft.com/v1.0/sites/{site_id}/drives/{drive_id}/root:/{Sharepointfolder}:/children"

1 Answer 1

2

From List children of a driveItem

If a collection exceeds the default page size (200 items), the @odata.nextLink property is returned in the response to indicate more items are available and provide the request URL for the next page of items. You can control the page size through optional query string parameters.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.