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 / Changing database schema
Power Apps
Answered

Changing database schema

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All, I have following problem: I created some canvas app, that allows add/edit records in some database tables, for example:

 

dev.table1

dev.table2

dev.table3

 

Now I would like to use the same app, to do the same processing on tables with the same structure, but on different database schema, for example:

 

itg.table1

itg.table2

itg.table3

 

Do I need to manually remove all dev tables, add itg, change all fields definitions, and code? Or there is some option to globaly change a database schema in app?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,543 Most Valuable Professional on at

    You can change the connection in the App to point to the new database using the same connection name.  Then refresh the connection. After that you'll have to clean up any formulas that show errors based on the schema change. There is no global switch that will adapt to a changing schema.  It will try to match as much as it can and then you'll have to cleanup the rest.

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    I'm afraid it's not supported to use the same formula structure and replace the table's name currently in PowerApps.

    As an alternative way, you could try to use Substitute function to replace some specific words.

    Insert a textinput control, set its text:

    Substitute("original formula","dev.table1","itg.table1")

     Here's a doc for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-replace-substitute

     

    Best regards,

    Community Support Team _ Phoebe Liu

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yutliu-msft wrote:

    Hi @Anonymous ,

    I'm afraid it's not supported to use the same formula structure and replace the table's name currently in PowerApps.

     


    Sad news 😞

    But thank you all for answer.

  • DragonLord Profile Picture
    200 on at

    this feature really needs to be added.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard