Closed diogowbrito closed 7 years ago
OneDrive's item copy is not supported with the MSGraph SDK at this time.
@peternied do you know when it will be?
Unfortunately I do not have a time table for when this SDK will support async features.
This functionality appears to be captured in the v1.0/$metadata
by the following declaration
<Action Name="copy" IsBound="true">
<Parameter Name="bindingParameter" Type="microsoft.graph.driveItem" Nullable="false"/>
<Parameter Name="name" Type="Edm.String" Unicode="false"/>
<Parameter Name="parentReference" Type="microsoft.graph.itemReference"/>
<ReturnType Type="microsoft.graph.driveItem" Nullable="false"/>
</Action>
And, at a glance, may be supported by classes related to DriveItemCopy
Validated that @diogowbrito 's code snippet works in the current version of the SDK.
I'm trying to copy a file inside the One Drive filesystem.
The code I'm using is the following:
I'm not even clear this is way, given the lack of SDK documentation, but according to this documentation it looks like the most similar one.
However, I get the following error:
Am I calling the wrong SDK methods? What might be wrong? By the way, it would be a huge enhancement to include more documentation/samples.