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 Apps / Filter one Document li...
Power Apps
Answered

Filter one Document library in two Galleries with different fitlers

(0) ShareShare
ReportReport
Posted on by 151

Hi everyone

 

In Canvas app I try to reproduce the SharePoint Function Copy/Paste File from one Folder to another in the same Document Library.

I have a filtered Gallery1 with Data source being my SharePoint Document library,  I can choose a file (that is easy and done).

What I need is to create another Gallery2 with Data source being the same SharePoint Document library but with independent filters (where the user can browse the Document library and choose a Folder without changing the filtered items in Gallery1) - to choose a Folder. 

Than with a Flow save a copy of the file from Gallery1 to the Folder in Gallery2.

 

Is there a way to filter one Data source in two galleries with different filters in the same time? 

 

Please help. Even info that this is not possible would be appreciated.

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Daniela3,

    Do you want to copy a file from Gallery1 to a folder you select from the Gallery2?

     

    I have a simple demo for your reference.

    1). I have two Galleries, Gallery2 for displaying all the files, Gallery2_1 for displaying some special folders

    2). Add a flow to the OnSelect property of the ">" icon in Gallery2:

    'PowerApp->Compose'.Run(Gallery2.Selected.Identifier,Gallery2_1.Selected.'Full Path')

    vqiaqimsft_0-1692678698860.png

    3). Configure the flow as below:

    vqiaqimsft_1-1692678866548.png

    vqiaqimsft_3-1692679472387.png

    Remember to select the Ask in PowerApps for the Compose, then flow will recogize it as Compose_inputs automatically in your Compose Inputs.

    vqiaqimsft_2-1692679419535.png

    4). Remember to click the Gallery2 firstly to output the file identifier, then click Gallery2_1 to select the destination folder that you want to copy file to.

    5). Here is the testing result:

    vqiaqimsft_4-1692679589202.png

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard