question

PauloRibeiro-8296 avatar image
0 Votes"
PauloRibeiro-8296 asked PauloRibeiro-8296 answered

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

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.

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyZ avatar image
0 Votes"
JoyZ answered

@PauloRibeiro-8296,

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.



image.png (50.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyZ avatar image
0 Votes"
JoyZ answered PauloRibeiro-8296 commented

@PauloRibeiro-8296,

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.



image.png (39.3 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JulieWang-MSFT , thanks for your quick reply and suggestion. Is that posible to have it automated once a new file is published or modified on Sharepoint side ?

0 Votes 0 ·
JoyZ avatar image JoyZ PauloRibeiro-8296 ·

@PauloRibeiro-8296,

In order to get a better forum experience, we changed your answer to a comment.

Use following trigger in flow to meet your requirement:

93455-image.png



0 Votes 0 ·
image.png (30.2 KiB)

Thank you @JulieWang-MSFT , I think its not going to work for my scenario because at the sharepoint side the users are free to create new folders and files and the trigger for subfolders should be added once a new subfolder is created, not efficient.

Is that some trigger to detect when the sharepoint document list is changed (due a new file or folder) ? I could start copying all the content when it happens without to get specifically the file or folder changed.

Thanks for your comments.

0 Votes 0 ·
PauloRibeiro-8296 avatar image
0 Votes"
PauloRibeiro-8296 answered

@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



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.