Open EmilySamantha80 opened 2 years ago
@EmilySamantha80 you should be able to use the $filter
query parameter, but this seems to be a bug on the API side.
$requestConfig->queryParameters->filter = "name eq '[drive name]'";
$site = $graphServiceClient->sitesById($siteId)->drives()->get($requestConfig)->wait();
Re-routing to service team.
Thank you for reporting this issue. This appears to be an issue or limitation with the service APIs. Unfortunately, as the Microsoft Graph SDK team, we do not have ownership of the APIs that are causing you issues. We invite you to create a question about the service API to Microsoft Q&A and tagged with one of the [microsoft-graph-*] tags, that way it will get routed to the appropriate team for them to triage.
For now, we will close the issue on our side but feel free to open it in the relevant repository if you think the issue is specific to SDK. Please let us know if this helps!
Note: We will close this repository on April 19, 2024.
I'm attempting to get a list of drives in v2.0.0 RC9 for a given site so I can figure out what the drive ID is for a given document library in order to list the files that it contains.
The closest I've gotten is getting the drive info for a site that I'm then unable to access:
This will fetch the list of drives that I can see using var_dump, but I don't know how to access them by name without enumerating all the drives first.