I like to work on files in OneDrive. A subset of these need to be published, whenever they're edited, to a SharePoint Online document library. I've started a Flow to handle this. Using the OneDrive "When A File is Modified" trigger and the SharePoint Copy action. But I can't get the destination path right. When I do a test run, I get "Flow Run Failed." The error is "Bad Request." Status code is 400.

  • what variations have you tried? – Derek Gusoff Aug 15 '18 at 18:12
  • Several iterations of /path/to/file and URL. – jamesnotjim Aug 15 '18 at 18:28
  • Have you tried server-relative? /sites/site/shared documents/folder/mydoc.docx – Derek Gusoff Aug 16 '18 at 14:47
  • Yes. I've tried relative and absolute paths. Same result. – jamesnotjim Aug 17 '18 at 15:48

You can use "Create File" action like this

Flow will be like this: enter image description here enter image description here enter image description here

Chandani Prajapati

  • Can you please tell me how to create a copy of a file and add timestamp to file name, ie /my_backups/my_file_name_bak_ddmmyyyy_hhmmss.xlsx? – user1063287 Mar 27 '20 at 1:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.