OneDrive : Copy a File - Synchronous behavior
planned
David Gurr
Copy a file is an asynchronous activity, as it may take some time - see https://docs.microsoft.com/en-us/graph/api/driveitem-copy?view=graph-rest-1.0&tabs=http and https://docs.microsoft.com/en-us/graph/long-running-actions-overview?tabs=http .
You have no mention of this in your module docs. This means that if you try to access the file straight after the module returns, it usually doesn't exist yet! This means either adding a Sleep module or implementing some kind of retry option.
The current OneDrive "Copy a file" module doesn't return anything as output - ideally it should return the action URL as listed under the second link above. That would allow a scenario to check for copy completion at a later stage.
---
Log In
Katerina Benova
planned
Richard Golstein
I agree this should return an output. This seems like a bug on the module as this should never have got through QA. It is counter intuitive to use as all other modules in the system return some kind of output. This should return the new file name and file id as a minimum.
Tereza Klobouckova
Richard Golstein: Thank you for your note. We will look into it with our developers.