Skip to content

v 2.3.12

Compare
Choose a tag to compare
@vgrem vgrem released this 29 May 11:43
· 546 commits to master since this release

Changelog

SharePoint API:

  • ListItem.validate_update_list_item method: setting dates_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()