We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I call Get-MGDriveItem with a valid ID I get the following error:
Get-MgDriveItem : The request is malformed or incorrect.
Tried calling with the -all param too and i got the same error
Any samples on how to use this?
AB#10584
The text was updated successfully, but these errors were encountered:
How do i get a list of DriveItems in a Drive
Sorry, something went wrong.
Also checking in on this one. I get the same issue when executing the following:
$drive = Get-MgDrive -Top 1 Get-MgDriveItem -DriveId $drive.Id
Thanks
Thanks for bringing this to our attention. The right API to use is https://docs.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0&tabs=http#list-children-in-the-root-of-the-current-users-drive, which unfortunately is not currently covered by the SDK.
A workaround is to use Invoke-MgGraphRequest to make the request as we work on making the command available in the next release.
Invoke-MgGraphRequest
Invoke-MgGraphRequest -Uri "v1.0/drives/$DriveId/root/children"
peombwa
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
When I call Get-MGDriveItem with a valid ID I get the following error:
Get-MgDriveItem : The request is malformed or incorrect.
Tried calling with the -all param too and i got the same error
Any samples on how to use this?
AB#10584
The text was updated successfully, but these errors were encountered: