Office365-REST-Python-Client
Office365-REST-Python-Client copied to clipboard
Microsoft 365 & Microsoft Graph Library for Python
client_credentials = ClientCredential(self.config['client_id'],self.config['client_secret']) self.ctx = ClientContext(self.config['site_url']).with_credentials(client_credentials) web = self.ctx.web self.ctx.load(web).execute_query() execute_query() not working as load() is returning NoneType for all cases.
Hi, I'd like to update the data to someone else with his/her email id. Although the column displayed on the Web site is "AssignedTo", I got "AssignedToId" and "AssignedToStringID" by...
AuthenticationContext.with_client_certificate reads in a certificate from a path (`cert_path`). This is fine if you have a filesystem, but is hard to use if you don't. It would be good to...
Im trying to follow the code of vgrem in [update_items_batch.py](https://github.com/vgrem/Office365-REST-Python-Client/blob/master/examples/sharepoint/listitems/update_items_batch.py) but i cant find any specific documentation about the functions that are used there. Do anyone know something about this?
Hello, So I think I found a bug. It seems that, when I try to get the item properties, whenever a colon i.e., " : " appears in the column...
``` def create_query(page_size): """ :type page_size: int """ qry = CamlQuery() qry.ViewXml = f""" '2022-08-03T04:00:00Z' {page_size} """ return qry target_list = ctx.web.lists.get_by_title("test123") list_qry = create_query(50) items = target_list.get_items(list_qry).execute_query() print("Loaded items...
with the examples, i can donload all file from onedrive , but how to backup file with a filter ? example: files modify time after 2021-4-1 or name contains "abc"?...
It would be great to be able to specify a config with AppID and AppTitle, along with User Agent and the other things recommended [here](https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online) for avoiding the SharePoint Online...
```source_file = ctx.web.get_file_by_server_relative_url(filepath) file_metadata = source_file.expand(["versions", "listItemAllFields", "Author"]).get().execute_query() expected_data_length = source_file.length local_file = io.BytesIO() def print_download_progress(offset): print("Downloaded '{}' bytes... of: {}".format(offset, filepath)) source_file.download_session(local_file, print_download_progress).execute_query_retry(max_retry=100) downloaded_length = local_file.getbuffer().nbytes ``` problem is...
Referring to https://github.com/vgrem/Office365-REST-Python-Client/issues/821 @vgrem Is there a plan to add a FilterDate option in the ChangeQuery or how can the filter query below be combined with ChangeQuery, so we can...