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 / Setting Variable for D...
Power Apps
Answered

Setting Variable for Dataverse table switch?

(0) ShareShare
ReportReport
Posted on by 14

Hi @ all,

 

Is there a possibility that you can set a table from Dataverse as variable?

I have different tables with the same structure like

Dataverse table 1: 1_Test_table

Column 1: Column_1

Column 2: Column_2

 

Dataverse table 2: 2_Test_table

Column 1: Column_1

Column 2: Column_2

Normally I have many more tables like this.

 

Now I want make in the OnStart somethink like this: 

If(Situation=1, Set(_table;1_Test_table), Set(_table;2_Test_table))

 

This will work, but:

 

In different masks I will use this Variable to Patch the Dataverse table:

But Patch(_table,Defaults(_table),... will not work 

 

Is there a possibility to make it workable?

 

Thank you in advance.

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

    Hi @AUG_Anja ,

    You cannot refer to Power Apps Data Sources dynamically - you would have to hard-code it.

     

    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

  • AUG_Anja Profile Picture
    14 on at

    Hi, thank you for the information.

    That's really annoying. Do anyone knows, that something like that will be possible in the future? For different locations with same structure this will be really helpful.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard