web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Moving (NOT copying) f...
Power Automate
Unanswered

Moving (NOT copying) files from personal OneDrive to OneDrive for Business

(0) ShareShare
ReportReport
Posted on by 9

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"
}

Categories:
I have the same question (0)
  • faustocapellanj Profile Picture
    1,662 on at

    Hi @MIR1315,

     

    Can you please post a screenshot of your Flow configuration?

     

    Thanks,

    Fausto Capellan, Jr

  • MIR1315 Profile Picture
    9 on at

    MyFlow.jpg

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @MIR1315,

     

    Do you want to move a file from OneDrive folder to OneDrive for Business folder using “Move or rename a file” action of OneDrive for Business connector?

     

    I suppose that you use “Move or rename a file” action of OneDrive for Business connector to move file from OneDrive folder to OneDrive for Business folder, is it true? The issue is confirmed on my side.

     

    The “Move or rename a file” action of OneDrive for Business connector only support moving files between folders of OneDrive for Business, it could not move files from OneDrive folder to OneDrive for Business folder (Cross server to move files).

     

    In addition, if you want to move files from OneDrive folder to OneDrive for Business folder, please take a try with the following workaround:

    • Add a “When a file is created” trigger of OneDrive connector.
    • Add a Condition, left input box set to File name dynamic content of the trigger, right input box set to .mp4, within middle drop down, choose ends with.
    • Within “If/yes” branch of Condition, add a “Create file” action of OneDrive for Business connector, specify Folder Path, File Name field set to File name dynamic content of the trigger, File content field set to File content dynamic content of the trigger. Under "Create file" action, add a "Delete file" action of OneDrive connector, File field set to File Identifier dynamic content of the trigger.
    • Within “If/no” branch of Condition, add a “Create file 2” action of OneDrive for Business connector, specify Folder Path, File Name field set to File name dynamic content of the trigger, File content field set to File content dynamic content of the trigger. Under "Create file 2" action, add a "Delete file 2" action of OneDrive connector, File field set to File Identifier dynamic content of the trigger.

    Image reference:4.JPG

    The flow works successfully as below:6.JPG

     

    Best regards,

    Kris

  • MIR1315 Profile Picture
    9 on at

    Thanks.  I'll give it a shot and let you know.

  • MIR1315 Profile Picture
    9 on at

    That worked great.  Thanks. Smiley Very Happy

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard