Is that posible to execute a robocopy script from a Power Automate flow ?

Paulo Ribeiro 21 Reputation points
2021-05-03T17:03:44.507+00:00

Hi. I need to synchronize a sharepoint list (documents) folders and files content to OneDrive for Business, I´ve tried using the Power Automate templates but it´s not working when the file is placed in a subfolder. I can do it uring robocopy but in the local computer, this is why I´m looking for an alternative to execute it from the Power Automate or another posible solution. Thanks for comment.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. JoyZ 18,111 Reputation points
    2021-05-05T01:50:06.093+00:00

    @Paulo Ribeiro ,

    Based on your description, try as following:

    93707-image.png

    In this flow, wherever you modified the file in the library, it will be copied to root folder of OneDrive for Business.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. JoyZ 18,111 Reputation points
    2021-05-04T01:59:48.293+00:00

    @Paulo Ribeiro ,

    We cannot execute a robocopy script from a Power Automate flow.

    As a workaround, we could manually copy library files (including those in subfolders) to one drive for business, use OOB function "Copy to" to achieve this.

    93491-image.png

    More information for your reference:

    https://support.microsoft.com/en-us/office/copy-files-and-folders-between-onedrive-and-sharepoint-sites-67a6323e-7fd4-4254-99a8-35613492a82f


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Paulo Ribeiro 21 Reputation points
    2021-05-05T07:44:40.147+00:00

    @JulieWang-MSFT ,

    thanks for your help, I´ve adjusted a few parameters and it´s now working fine, thanks a lot.

    93845-2021-05-05-09-41-25-edicion-de-un-flujo-power-auto.jpg

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.