Changelog
SharePoint API:
ListItem.validate_update_list_item
method: settingdates_in_utc
as an optional parameter (#509)Search
namespace enhancements #496
Example 1: submit search (KQL) query expression via SearchService.query
method
ctx = ClientContext(site_url).with_credentials(credentials)
search = SearchService(ctx)
result = search.query("IsDocument:1").execute_query()
Example 2: construct sorting search results query and submit via SearchService.post_query
method
ctx = ClientContext(site_url).with_credentials(credentials)
search = SearchService(ctx)
request = SearchRequest(query_text="IsDocument:1",
sort_list=[Sort("LastModifiedTime", 1)],
select_properties=["Path", "LastModifiedTime"],
row_limit=20)
result = search.post_query(request).execute_query()