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 / Distribute excel files...
Power Automate
Answered

Distribute excel files to different SharePoint folders

(0) ShareShare
ReportReport
Posted on by 39

HI,

 

I have a SharePoint folder(Original Files) which has around ~49 excel files(this count may change every week) and i have another folder named (Distributed Files) and with in that i have 5 sub folders A, B, C, D and E.

 

I am trying to automate this to distribute the files in SharePoint folder(Original Files) to the 5 sub folders A, B, C, D and E in (Distributed Files) equally.

 

Example: 

SharePoint folder(Original Files)  - 49 files.

SharePoint folder(Distributed Files):

A - 10 files

B - 10 files

C - 10 files

D- 10 files

E - 9 files.

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    v-wenjuan-msft Profile Picture
    Microsoft Employee on at

    Hi @PowerMani ,

     

    Refer to following process

    vwenjuanmsft_0-1685936197619.png

    For remaining part of files, divide them into chunks and repeat the "Apply to each" to move files by order.

    Here are functions to group them into groups of 10:

     

    take(outputs('Get_files_(properties_only)')?['body/value'],10)
    skip(take(outputs('Get_files_(properties_only)')?['body/value'],20),10)
    skip(take(outputs('Get_files_(properties_only)')?['body/value'], 20), 10)
    skip(take(outputs('Get_files_(properties_only)')?['body/value'], 40), 30)
    skip(outputs('Get_files_(properties_only)')?['body/value'],40)

     

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard