We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source_folder_url = "/sites/sitename/Shared Documents/old/1" target_folder_url = "/sites/sitename/Shared Documents/new" source_folder = ctx.web.get_folder_by_server_relative_url(source_folder_url) target_folder = source_folder.copy_to_using_path(target_folder_url,True).get().execute_query() print(f"File copied into {target_folder.serverRelativeUrl}")
Showing error: requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://domain.sharepoint.com/sites/sitename/_api/Web/getFolderByServerRelativePath(DecodedUrl=%7B'DecodedUrl':%20'/sites/sitename/Shared%20Documents/new'%7D)
The text was updated successfully, but these errors were encountered:
someone please help
Sorry, something went wrong.
(SharePoint API) #527 fix for Folder.copy_to_using_path method
038074a
I confirm it was a bug with Folder.copy_to_using_path method, thank you for reporting it. It has been resolved in 2.3.14 version
Folder.copy_to_using_path
No branches or pull requests
Showing error:
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://domain.sharepoint.com/sites/sitename/_api/Web/getFolderByServerRelativePath(DecodedUrl=%7B'DecodedUrl':%20'/sites/sitename/Shared%20Documents/new'%7D)
The text was updated successfully, but these errors were encountered: