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 / Is there a way to "que...
Power Apps
Answered

Is there a way to "query" all the data sources name in Power Apps and put them into a collection?

(0) ShareShare
ReportReport
Posted on by 27

Hi Everyone,

 

My question is the subject itself. 

Kind of like when you "show databases" in SQL and it would display all your databases.

My app is using multiple sharepoint lists. I want to be able to change the data source of my gallery by selecting a list from a dropdown then save that into a variable so that I won't have to manually change the data source name in the code itself.

 

Like for example, right now I am using

 

Filter('mySharepointList', ....)

 

and I want it to be

 

Filter(mySharepointVariableName, ...)

 

 

and when I select a list from the dropdown, I'll click a button to set that list into my variable like this

 

Set(mySharepointVariableName, dropdown.selected)

 

 

Is there a way to achieve this? Would appreciate any help. Thank you so much!

Categories:
  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @medjasu ,

     

    It sounds like you want to use dynamic data sources in your app.

     

    Here is a link for your reference.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Dynamically-changing-Gallery-source/m-p/116662

     

    In addition, here is an idea that maybe you could vote on:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Dynamic-Data-Source/idi-p/178095#M7015

     

     

    Best Regards,

    Charlie Choi

     

     

     

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard