Replies: 1 comment 1 reply
-
Just to add to this. If I use the Graph Api endpoint: https://graph.microsoft.com/v1.0/sites/{site-id}/drive/root/children I can get all the files and their Ids easily. I would assume that this maps to: graphClient.Sites[{site-id}].Drive.Root.Children HOWEVER, Drive does not have a Root item unless I GetAsync. Problem is, when I do, Drive.Root is null? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm really struggling here with the C# SDK.
Quite simply, I have a file path for an item I have uploaded in SharePoint e.g
https://xxxx.sharepoint.com/sites/zzzzzzz/Shared%20Documents/file.xlsb
Is there a way to use the C# SDK to retreive this file?
So far I've tried using:
var result = await graphClient.Drives[DRIVE_ID].Root.ItemWithPath(filePath).GetAsync();
but using the file path above, I get a "resource not found" error. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions