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 / How to move half of th...
Power Automate
Answered

How to move half of the files in a folder?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi I'm making a power automate desktop flow that process xml data and when there are more than 6000 files it gives me error so I need to separate those files into two and process twice. 

Capture.PNG

 

I know that I could move entire files like this but how do I move only half of it? Thank you in advance

I have the same question (0)
  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 2 on at

    Hi @Anonymous ,

     

    If you want move half of the files by directly you cant move you must use loop for that.

    Ahammad_Riyaz_0-1663665318340.png

    Refer this it will work for you.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Ahammad thank you for your reply. 

     

    I aware that I could move file by loop but it's not very inefficient to go through entire files one by one since I have thousands of files to go through. Is there way to move half of the files at once? 

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok I figured out you can just do files[0: count].

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    So, just to confirm, Move files %Files[0:2999]% will move the first 3000 files?

  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 2 on at

    Yes, Verified.

  • Verified answer
    Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 2 on at

    Ahammad_Riyaz_0-1663926043694.png

    files[0: count]

     

    Verified It was working as expected.

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard