Open mingchun-zhao opened 1 year ago
Hello @mingchun-zhao , if it helps, I use the filter query to get the files created/updated after a certain date, as below.
However, @vgrem , I was also wondering if there's an example to run the delta query from the Graph Api using this lib. Since delta queries are the recommended approach by Microsoft. Also, related questions https://github.com/vgrem/Office365-REST-Python-Client/issues/822 https://github.com/vgrem/Office365-REST-Python-Client/issues/821
items = (
ctx.web.lists.get_by_title(doc_lib)
.items.select(["FileSystemObjectType"]).filter("Modified gt '2024-02-10T08:23:03Z'").expand(["File", "Folder"])
.get_all()
.execute_query()
)
print("Loaded items count: {0}".format(len(items)))
@vgrem any help appreciated on this. Thanks.
Hi, Is there a method to fire Delta Query for SharePoint Documents using Office365-REST-Python-Client?