cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Adamswe
Regular Visitor

Copy files from one Sharepoint folder to another based on filenamn - Recurrence

I am trying to set up a flow that copies files from one Sharepoint folder to another every 24 hours. My team handles images in two separate folders, one where they are categorized into 4-5 layers of subfolders, and one big master folder where all the images go. 

We are several people working these folders, updating and adding pictures every day. So my goal is that we should only add and update pictures in the folder with several subfolders, and then, let's say at midnight, the flow collects all the changed and new pictures and copies them to the so called "Master" folder.  The flow identifier should be the filename and containg "_BP" (code for productimage) and searching all the subfolders. 

Below is my try to get the flow working, but it always return false. Does anoyne know how to fix it?

Adamswe_0-1638261564696.png

 

Best regards,

Adam 

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User
Super User

How many times is your 'Apply to each' being executed? 100? If so, you probably need to increment the top nr of results provided by 'Get files (properties only)
Great stuff here, please note 'Get files' does not support pagination
How to get more than 5000 items from SharePoint Online in Flow - Alex Tofan's blog

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
efialttes
Super User
Super User

How many times is your 'Apply to each' being executed? 100? If so, you probably need to increment the top nr of results provided by 'Get files (properties only)
Great stuff here, please note 'Get files' does not support pagination
How to get more than 5000 items from SharePoint Online in Flow - Alex Tofan's blog

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Adamswe
Regular Visitor

Thank you @efialttes , that quick fix made the flow work properly. turned on the pagination and the put the number of results to 5000. 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,036)