
Hi @Anastasiia Ilina
Filtering drive items based on the createdDateTime
property is not currently supported, you can try getting a collection of child items and filtering locally.
Using graph SDK:
var items = await graphClient.Drives["{drive id}"].Items["{item id}"].Children.GetAsync();
var date = DateTimeOffset.Parse("2023-10-20T08:27:26Z");
foreach (var item in items.Value) {
if (item.CreatedDateTime <= date) {
Console.WriteLine("{" + "id: " + item.Id + "\r\n" + "createdDateTime: " + item.CreatedDateTime + "}" + "\r\n");
}
}
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.