Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Change Data Source based on Context Variable

I'm looking to load a different data source depending on the option selected from a prior screen. I'm passing a Context variable in from that screen called Client. It contains the name of the data source I want to then display.


Every attempt to craft a formula that uses Client will not load those items into the Gallery. 


Any ideas? Can this be done, even if the data sources are all the same columns?

Community Support Team
Community Support Team

Re: Change Data Source based on Context Variable

Hi banstyle,


I am afraid that it might be not possible to load a different data source depending the option selected from a prior screen.

May you try to create an app which has a home screen, on which you could display all the data sources you have.

Then when you click each data source, you will be navigated to the corresponding screen.

On the corresponding screen for each data source, you could add a Gallery control or Form control to display detailed information.

Hope this could be a reference for you.

Please feel free reply if you need more help.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (3,885)