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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Move only x number of ...
Power Automate
Answered

Move only x number of file at a time

(0) ShareShare
ReportReport
Posted on by 8

I cannot for the life of me get this to work and I think I'm missing something simple. 

 

I have a folder that has lets say 2000 files in and I want to move only 200 files from folder 1 to folder 2 at a time.

 

I can get files to move from folder 1 to folder 2 no bother at all - but cannot get it to limit the number of files that move.

 

I've tried loops - incremental variables - I've tried replicating a script from Automate 11 -but its just not working 🤦‍♂️

 

Any advice/guidance would be greatly appreciated,

 

Thankyou 🙂

 

 

  • Verified answer
    Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    You could do it the simple way


    Folder.GetFiles Folder: $'''c:\\temp''' FileFilter: $'''*''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> Files
    LOOP LoopIndex FROM 0 TO 3 STEP 1
    File.Move Files: Files[LoopIndex] Destination: $'''c:\\test''' IfFileExists: File.IfExists.DoNothing MovedFiles=> MovedFiles
    END

     

    Or you could put the first 200 files into a new list and use it in "Move files"

  • Jamy123 Profile Picture
    8 on at

    Thankyou! Knew it would be something stupid I was missing! 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard