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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Sharepoint Copy Excel files in main folder only into sub folder and then delete the excel files in main folder.

(0) ShareShare
ReportReport
Posted on by 27

Hi,

I am trying to build a flow where it copies only .xlsx from Shared Documents > Folder A to Shared Documents > Folder A > Archive.

 

I would also like this flow to delete only .xlsx files from Shared Documents > Folder A once it has copied the files

 

I created a flow however it is copying all the files in the Shared Documents > Folder A instead of just files I would like to copy.

threw001_0-1676417248760.png

 

Please can someone point me in the right direction?

 

Thanks

I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    on at
    Re: Sharepoint Copy Excel files in main folder only into sub folder and then delete the excel files in main folder.

    Hi @threw001 ,

    Please add a [Condition] to determine whether the file name with the file name suffix contains xlsx, and if so, copy the file

    vchengfenmsft_0-1676427525966.png

     

     

    Best Regards

    Cheng Feng

  • threw001 Profile Picture
    27 on at
    Re: Sharepoint Copy Excel files in main folder only into sub folder and then delete the excel files in main folder.

    Thanks Cheng - the only issue I have now is that the 'Copy file' function only allows for current site address which has other files within the 'Shared Documents' file whereby I only want to copy from select folders. Is there anyway around this?

  • v-chengfen-msft Profile Picture
    on at
    Re: Sharepoint Copy Excel files in main folder only into sub folder and then delete the excel files in main folder.

    Hi @threw001 ,

    Do you only want to move files in a certain folder?
    please choose,like  this:

    vchengfenmsft_0-1676438177115.png

    If you want to move to another site, please choose this way, or enter it manually

    vchengfenmsft_1-1676438261243.png

     

    Best Regards

    Cheng Feng

     

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard