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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Move files with "xxxx"...
Power Automate
Unanswered

Move files with "xxxx" prefix to folders with "xxxx" prefix.

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I have a tough time completing this task in Sharepoint.

 

Source folder contains around 1800 files with names like "0001 - plan.pdf" or "5002 - test.pdf".

Destination folder contains 1600 folders with names like "0001 - Name of the location" etc.

 

I want to extract the prefix from all the source files and then search through the destination folders to find the matching prefix in the destination folder and then move the file. 

 

I listed all the files in the source and destination folder and then attempted to retrieve the prefix however nothing I already tried seem to be working. I'm fairly knew to power automate and this seemed like simple task but it quickly became overwhelming. 

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

    Hi @Anonymous ,

     

    Your folder and file names have "-" separate?
    If you all have "-" You can refer to the following tests from separate.

    vdezhilimsft_1-1676949665001.png

    vdezhilimsft_2-1676949680415.png

    vdezhilimsft_3-1676949696152.png

     

    vdezhilimsft_0-1676949530549.png

    vdezhilimsft_4-1676949754465.png

    vdezhilimsft_5-1676949811175.png

    If you have a large number of files, you can open the Pagination.

     

    vdezhilimsft_9-1676950083479.png

    vdezhilimsft_8-1676949998931.png

     

    Best Regards,

    Dezhi

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard