I am trying to get a drive's items via the Microsoft Graph Api (SDK) and tried the following options:
_graphServiceClient.Drives[driveInfo.Id].Items.Request().GetAsync()
:, this unfortunately results in an error with message error with message "The request is malformed or incorrect" and code "invalidRequest". If I execute_graphServiceClient.Drives[driveInfo.Id].Request().GetAsync()
however, I get back all drives but theItems
property isnull
._graphServiceClient.Drives[driveInfo.Id].Request().Expand(d => d.Items).GetAsync()
, this also results in an error with message "The request is malformed or incorrect" and code "invalidRequest".
I don't know how to go on from here, still researching, but the documentation is leaving me clueless at the moment. Anyone success with either .Expand()
or getting the actual files from a Drive?
Thanks, Y