I was trying to build a flow to copy the files from SharePoint document library to OneDrive for Business (Cloud). I created a trigger called 'When a file is created or modified (properties only)' , an action to fetch metadata properties 'Get file metadata' for SharePoint and 'Copy file' for OnDrive for Business.
The flow get through until the SharePoint side but with the OnDrive i get an error saying 'The file id is not valid'.
"message": "The file id is not valid.",
Please help me out with a resolution for this error.
Thanks in advance.
Do you want to create the a to OneDrive for Business when the file is created in SharePoint library?
Instead of using OneDrive for Business Copy file action, please use Create file action.
I have made the following flow for testing and it works great.
Image for your reference:
I tried your workaround, but now i get a different error "Unauthorized".
However, just to give you a bit of background, I am actually trying to copy the files across to a different user's OneDrive for Business account NOT my personal account.
Is this achievable?
Check out the new Process Advisor community forum board!
Check out new user group experience and if you are a leader please create your group
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks