I am trying to retrieve a nested folder using the Graph API sdk in C# with the following folder structure:
(site) site.sharepoint.com -> (folder) 2022 -> (folder) October -> (folder) 25
Using this code:
var dayDrive = await graphClient
.Sites["site.sharepoint.com"]
.Drives["2022"]
.Root
.Children["October"]
.Children["25"]
.Request()
.GetAsync();
However this fails with code:
Code: invalidRequest
Message: Invalid request
But this doesn't make sense, why is this failing and how can I retrieve the nested folder I need?