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 / Search for a particula...
Power Automate
Unanswered

Search for a particular folder and Copy files to another folder

(0) ShareShare
ReportReport
Posted on by 20

Hello Everyone,

 

I have created a flow for folder automation, in which I am giving input(folder name) through power apps and it is creating folders with that particular name. Now what I want to do is, I want to search for a folder in my document library whose name is same as my input in Power Apps , and want to copy files from that folder to new created folder 

 

SP library 1(Data)

112463

145636

112233

 

Folders created through Power apps input

112233, Now I want files from SP library 1 > 112233, to be copied to 112233(newly created)

 

So basically it will search for that particular folder in that document library and copy the files to this folder. Please help if you can.

PFA for my flow

tempsnip.png

Thanks in Advance.

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

    Hi @suyog26 ,

    Do you want to do this in a same library? If yes, this cannot be done since we cannot create two floders with same name inside a single library.

    If the new created folder is in another library, you can try flow like this.

    1. Create a folder in library1 using the input from your app(I just tested this using a variable). Then get all files content in your source library folder which has a same folder name(library2).

    valbaimsft_0-1628066957732.png

    2. Copy file to library1/XXX(we need to use "identifier" property from "get files(properties only)" action to find a specified file):

    valbaimsft_1-1628067157329.png

    Best regards,

    Allen

  • suyog26 Profile Picture
    20 on at

    Hi Allen,

    Thank you for responding to me.

    I do not want to create 2 folders I have a data pool in which there are folders with different names. I will create folder from PowerApps which will have one of the same name from my data pool.

    I want to fetch files from that particular folder to my newly created folder.

     

    Data Pool Folders(3 folders)

    123456

    445566

    778899 

     

    Folder created from PowerApps

    123456

     

    Then My flow will search folder 123456 in my data pool and will copy all the files in my newly created folder.

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @suyog26 ,

    Ok, so you can refer to the flow mentioned in my first reply.

    Best regards,

    Allen 

  • suyog26 Profile Picture
    20 on at

    Can you please share the query you wrote in Folder name and Identifier??

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @suyog26 ,

    You can directly find identifier in the dynamic content:

    valbaimsft_0-1628128306790.png

    And the folder name should be like this:

    /libraryname/ParameterFromPowerApps

    Best regards,

    Allen

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard