eskildd
May 27, 2021Copper Contributor
Status:
New
Ability to update DriveItem properties while copying it
I'd like the ability to https://docs.microsoft.com/en-us/graph/api/driveitem-update?view=graph-rest-1.0&tabs=http while https://docs.microsoft.com/en-us/graph/api/driveitem-copy?view=graph-rest-1.0&tabs=http
Reasoning:
- If you need to update custom column values on the copied item then you need to make 2 requests and the copied item is in an invalid data state until the update request goes through - it might also fail
- It's currently impossible to copy a DriveItem (via GraphAPI) that have a unique custom column. Being able to alter the unique column during the copy would make unique custom column functional. Currently the unique constraint should be avoided, and that makes me sad.
https://stackoverflow.com/questions/63847261/copying-file-on-sharepoint-using-graph-api-sdk-doesnt-work-with-unique-fields
No CommentsBe the first to comment