Office365-REST-Python-Client
Office365-REST-Python-Client copied to clipboard
Microsoft 365 & Microsoft Graph Library for Python
https://github.com/vgrem/Office365-REST-Python-Client/blob/9584c62c9c4237107fb5ab2dc11629b8f1184b57/office365/runtime/client_runtime_context.py#L43-L71 If the last attempt fails with a `ClientRequestException` it will still re-queue the query. But it will never consume it, since line 63 would never be called again. Unless...
@vgrem , Thank you so much for the library, Currently I am deleting the versions of files but faced issue while deleting large file size especially 2 GB+ file, Could...
https://github.com/vgrem/Office365-REST-Python-Client/blob/9584c62c9c4237107fb5ab2dc11629b8f1184b57/office365/sharepoint/client_context.py#L235 It calls https://github.com/vgrem/Office365-REST-Python-Client/blob/9584c62c9c4237107fb5ab2dc11629b8f1184b57/office365/runtime/client_runtime_context.py#L43 Which iterates with a sleep and a sleep that uses a method argument, so I don't see how that sleep could be dynamic. Python isn't my...
Sometimes you have to move a bunch of files together to another folder. If you use [move_to_using_path](https://github.com/vgrem/Office365-REST-Python-Client/blob/9584c62c9c4237107fb5ab2dc11629b8f1184b57/office365/sharepoint/files/file.py#L370) concurrently using [ThreadPoolExecutor](https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor), [ClientRequestException](https://github.com/vgrem/Office365-REST-Python-Client/blob/9584c62c9c4237107fb5ab2dc11629b8f1184b57/office365/runtime/client_request_exception.py#L4) is raised. ### How to reproduce ```python import concurrent.futures...
Hi, I'm struggling to add existing site columns to content type. **Code**: ` field_target = ctx_dest.web.fields.get_by_internal_name_or_title(field.title).execute_query() print(f" - Mapping Field: {field_target.internal_name} Target-ID: {field_target.id}") field_links = ct_target.field_links.add(field_target).execute_query() ` The field_target is...
Hi, Trying to use execute_query_with_incremental_retry() method in client_context.py - with success, however it seems it swallows all query issues silently. Please, when ClientRequestException occurs and the reason is Microsoft.SharePoint.Client.InvalidClientQueryException -...
I was working on a module for programmatically handling files from an onedrive folder and I get a weird JSON decode error specifically when downloading JSON files or in general...
I tried to authenticate my Sharepoint on 21vianet with client secret, but it reported '401 Client Error: Unauthorized for url: https://graph.microsoft.com/v1.0/web/getFileByServerRelativePath%28DecodedUrl%3D%27https://galab.sharepoint.cn/:x:/g/EdLtDQIxUHxLj0FuemeleMsBaczbg7-bNKcqyDIyHR5utA%3Fe%3DO04gLy%27%29/%5C%24value' I have identify the authority url and acquire token...
As soon as a I update an URL column, the execute_batch() doesn't work. I can update all items individually. When I change e.g. only varchar column, then the execute_batch() works....
Hi All, I am trying to get get a list of all files in a given Folder including meta data fields. When I run a REST call, I can see...