We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a414b0 + 6143a9d commit bc193d4Copy full SHA for bc193d4
1 file changed
README.md
@@ -58,7 +58,11 @@ var drive = await graphClient.Me.Drive.GetAsync();
58
To get the current user's root folder of their default drive:
59
60
```csharp
61
-var rootItem = await graphClient.Me.Drive.Root.GetAsync();
+// Get the user's driveId
62
+var drive = await graphClient.Me.Drive.GetAsync();
63
+var userDriveId = driveItem.Id;
64
+// use the driveId to get the root drive
65
+var rootItem = await graphClient.Drives[userDriveId].Root.GetAsync();
66
```
67
68
`GetAsync` will return a `DriveItem` object on success and throw a
0 commit comments