cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UlvJalali
New Member

Storing datasource name in a variable

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

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

 

 

 

 

 

View solution in original post

1 REPLY 1
WarrenBelz
Super User
Super User

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

 

 

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,426)