[Extensibility Request]: Add DriveId overloads for SharePoint Graph Client drive item operations
Nobody has claimed this yet.
- Dominant language
- AL
- Stars
- 683
- Forks
- 459
- Avg merge
- 3d 26m
- Merged PRs (30d)
- 633
Description
Describe the issue
The SharePoint Graph Client currently exposes a mix of DriveId-aware and default-drive-only operations.
The following methods already support targeting a specific drive:
- GetDrive()
- UploadFile()
- UploadLargeFile()
- CreateFolder()
However, most drive item operations only work against the site's default drive (e.g. DownloadFile() or DeleteItem()). This makes it difficult to work with SharePoint sites containing multiple document libraries.
Expected behavior
Drive item operations should expose overloads that allow callers to explicitly work against a specific DriveId, similar to the existing UploadFile(), UploadLargeFile() and CreateFolder() APIs.
Steps to reproduce
- Create a SharePoint site containing multiple document libraries.
- Retrieve a non-default drive using GetDrives().
- Upload content to the non-default drive using UploadFile(DriveId, ...).
- Attempt to perform follow-up operations such as DownloadFile() or ItemExists() against the same drive.
The current API only exposes default-drive implementations for many drive item operations, making it impossible to continue working with the non-default drive through the SharePoint Graph Client.
Additional context
No response
I will provide a fix for a bug
- I will provide a fix for a bug
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the existing DriveId-aware GetDrive(), UploadFile(), UploadLargeFile(), and CreateFolder() APIs with default-drive operations such as DownloadFile(), DeleteItem(), and ItemExists(). Trace the SharePoint Graph Client entry points and identify the remaining drive item operations that lack DriveId overloads. Done means those operations can target a non-default drive consistently with the existing APIs, with relevant tests updated or added if the repository provides them.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100