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 / Storing datasource nam...
Power Apps
Answered

Storing datasource name in a variable

(0) ShareShare
ReportReport
Posted on by 2

Hello I have an app that is connect to different excel datasources. the app allows the user to choose a client from a dropdown. each client has its own datasource (excel) which is uploaded and connected to the app. The client name matches the name of the datasource associated with that client. Currently when I call the value selected from the dropdown menu (clientlist.selected)  to a variable, it has a type of record, or if I use (clientlist.slected.Result) it's stored as text. The problem is I cannot use that to call a datasource. is there a way to convert that variable to a datasource type so I can show the chosen client information without having to make a different screen for each client. I have too many clients to do that. 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @UlvJalali ,

    Unfortunately, you cannot dynamically refer to a data source, so you would have to hard code this. Also all the tables would need to be absolutely identical in field name and type.

    A better idea would be to have one table with a field for the client name and an even better one to make this a SharePoint list.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

     

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard