-
So far using O365 I've been able to successfully upload a pdf file using the One Drive upload_file() to a SharePoint site. I'm also able to navigate to a SharePoint item that was previously uploaded via SharePoint ui and update_fields(). But, when I try to update fields to a pdf that I recently uploaded, I get an error that those fields don't exist. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I did end up finding a workaround and wanted to provide it here in case someone else finds this. O365 does provide the ability to do generic requests without having to worry about authentication which was nice. I did this to update the custom fields: |
Beta Was this translation helpful? Give feedback.
I did end up finding a workaround and wanted to provide it here in case someone else finds this. O365 does provide the ability to do generic requests without having to worry about authentication which was nice. I did this to update the custom fields:
r = account.connection.oauth_request(r_url, 'patch', headers=r_type, data=r_fields)
This is the resource that helped me figure it out:
https://stackoverflow.com/questions/56223986/ms-graph-api-set-custom-tags-columns-of-a-driveitem