I have both a personal OneDrive account as well as a OneDrive for Business (OfB) account. When files are created in a certain folder in my personal OneDrive account, I want to move (NOT copy) them to my OfB account. More specifically, if the file ends with a certain extension, I wanted to move it to one folder in my OfB account. Files with any other extensions, I want to move to a separate folder in my OfB account. I've been trying to do this with a Microsoft Flow, but I can't get it to work. I've created the following customer flow, but am getting the following error. Can this be done with a flow? If so, how?
Flow Details:
| |
Yes No
| |
--Move or rename a file (Preview) --Move or rename a file (Preview)
--File: File name --File: File name
--Destination File Path: /Videos/File name --Destination File Path: /Pictures/Camera Roll/File name
--Overwrite: No --Overwrite: No
Error/Result:
--User the Condition section, it says:
ActionFailed. An action failed. No dependent actions succeeded.
--Under the No (Move or rename a file) section.
BadRequest
--Inputs
--File
test.jpg
--Destination File Path
/Pictures/Camera Roll/test.jpg
--Overwrite
False
--Outputs
--Status code
400
--Headers
--Body
{
"status": 400,
"message": "The provided drive id appears to be malformed, or does not represent a valid drive.",
"source": "api.connectorp.svc.ms"
}