You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@microsoft.graph.conflictBehavior in driveitem copy #981
As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.
Activity
[-]`@microsoft.graph.conflictBehavior` in file copy[/-][+]`@microsoft.graph.conflictBehavior` in driveitem copy[/+]Herz3h commentedon Aug 8, 2019
I'm trying this aswell using the Graph API and it always returns nameAlreadyExists regardless of the behaviorConflict specified
How to work around this ??
8ggmaker commentedon Sep 1, 2019
any updates?
kostenickj commentedon Apr 7, 2020
come on guys?
greenygh0st commentedon Jun 10, 2020
I can also confirm that this still does not function properly.
marcogiannetta commentedon Nov 16, 2020
Adding @microsoft.graph.conflictBehavior=rename to query string parameters did work for me
tofu-1 commentedon Dec 8, 2020
as marcogiannetta said, you have to add to the query params.
Example:
https://graph.microsoft.com/v1.0/me/drive/items/{your-file-id}/[email protected]=rename
If you're using the C# Graph SDK you have to send a query option on the request.
Source: https://stackoverflow.com/a/44991860/14457092
Herz3h commentedon Dec 8, 2020
Well docs should be updated then
Cnly commentedon Jan 5, 2021
It looks like the workaround above only works for OneDrive for Business... OneDrive Personal still seems to ignore it.
Herz3h commentedon Mar 19, 2021
Adding @microsoft.graph.conflictBehavior to query string doesn't work either:
https://graph.microsoft.com/v1.0/me/drive/items/{your-file-id}/[email protected]=replace
Edit: It actually works, my bad. I just had different unrelated error (overwrite is not supported for folders)
czernas commentedon Mar 25, 2021
Does not work with the personal accounts. 😒
patrick-rodgers commentedon Feb 17, 2023
As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.