{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/UWPCommunityToolkit/issues/1549","repository_url":"https://api.github.com/repos/Microsoft/UWPCommunityToolkit","labels_url":"https://api.github.com/repos/Microsoft/UWPCommunityToolkit/issues/1549/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/UWPCommunityToolkit/issues/1549/comments","events_url":"https://api.github.com/repos/Microsoft/UWPCommunityToolkit/issues/1549/events","html_url":"https://github.com/Microsoft/UWPCommunityToolkit/issues/1549","id":264562783,"number":1549,"title":"OneDrive Service: How to get items from Shared folders","user":{"login":"kaohlive","id":7389021,"avatar_url":"https://avatars3.githubusercontent.com/u/7389021?v=4","gravatar_id":"","url":"https://api.github.com/users/kaohlive","html_url":"https://github.com/kaohlive","followers_url":"https://api.github.com/users/kaohlive/followers","following_url":"https://api.github.com/users/kaohlive/following{/other_user}","gists_url":"https://api.github.com/users/kaohlive/gists{/gist_id}","starred_url":"https://api.github.com/users/kaohlive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaohlive/subscriptions","organizations_url":"https://api.github.com/users/kaohlive/orgs","repos_url":"https://api.github.com/users/kaohlive/repos","events_url":"https://api.github.com/users/kaohlive/events{/privacy}","received_events_url":"https://api.github.com/users/kaohlive/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-11T12:13:27Z","updated_at":"2017-10-11T12:13:27Z","closed_at":null,"author_association":"NONE","body":"I am using the OneDrive Service connected to a personal OneDrive. The user has a folder that was shared by another personal OneDrive. The user included the shared folder into its own OneDrive.\r\nWhen I use the workaround posted here to get the RootFolder\r\n\r\n`                OneDriveService.Instance.Initialize();\r\n                await OneDriveService.Instance.LoginAsync();\r\n                Microsoft.OneDrive.Sdk.Item oneDriveRootItem = await OneDriveService.Instance.Provider.Drive.Root.Request().GetAsync();\r\n                if (oneDriveRootItem.ParentReference.Path == null)\r\n                    oneDriveRootItem.ParentReference.Path = \"/drive/root:\";\r\n                var rootFolder = new OneDriveStorageFolder(OneDriveService.Instance.Provider, OneDriveService.Instance.Provider.Drive.Root, oneDriveRootItem);\r\n`\r\n\r\nAnd than I get the folder the user selected by path; `var locatedFolder = await rootFolder.GetFolderAsync(userSelectedPath);` I do get the shared folder. Using the `locatedFolder.GetFilesAsync()` however does not return any of the files in the folder. Based on the API documentation this would be by design. We should use the `locatedFolder.OneDriveItem.RemoteItem.ParentReference.DriveId` to get the drive id where the folder actually is located. So I then try to get this drive in the drives request like this \r\n`var drive = await OneDriveService.Instance.Provider.Drives[oneDriveRootItem.ParentReference.DriveId].Root.Request().GetAsync();` \r\nBut that returns an index exception. Looking at the Drives request I can confirm I only see my single personal onedrive and non of the shared drives listed there. The API documentation suggests that all drives should be listed there.\r\nI see there is a Shares implementation also, but that one only gives me errors.\r\n\r\nSo did I run into a bug, a missing implementation or am I doing it wrong?"}}
{"actor":{"display_login":"kaohlive"}}