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 / Globally Replace a Dat...
Power Apps
Answered

Globally Replace a Data Source

(0) ShareShare
ReportReport
Posted on by 84

I have developed an app that is connected to a few SharePoint lists.  I want to make a copy of the app and direct it to copies of those SharePoint lists to create a "test" environment of sorts. 

 

How can I globally reconnect/replace the data connections in the app so that all controls/code is correctly updated in the "test" version of the app to connect to the "test" SharePoint lists?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Pegger ,

    You need to disconnect (remove from your Data Sources) the "old" lists and then connect the "new" lists. You will know if this has worked as you will get the "red dot" code error at top right when you disconnect, which should disappear when you add the new ones.

     

    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.

  • Pegger Profile Picture
    84 on at

    @WarrenBelz 

    Thanks for that.  Will this work when the new lists will have different names than the previous ones?  The structure and column names will be the same but the list names will differ.  See examples below...

    OLD LIST NAME: Transactions

    NEW LIST NAME: Transactions_TEST

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    HI @Pegger ,

    No it will not - the lists need to be identical in both file name and file content for any field that is referenced anywhere in the app.

     

    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.

  • Pegger Profile Picture
    84 on at

    That's brutal and will cost me a few hours of non-value add work.  There are references in hundreds of controls to several SharePoint lists.  Are there any hacks to solve for this?  Exporting the app out of power apps and globally replacing the list names?

     

    Alternatively, I may be able to get a new SharePoint site set up with the same exact list names.  Would that work?

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Pegger ,

    Option 2 is clearly the choice. Any time you have prod and test data sources and want to move an app around, it needs to "recognise" the data. As mentioned, Power Apps does not care where it is located as long as whatever it is given aligns with any references it has to the data.

     

    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.

     

     

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Pegger ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

  • Pegger Profile Picture
    84 on at

    Hi @WarrenBelz 

    We were able to successfully put a copy of the SharePoint lists on a different site with the same names, then copy the Power App, and replace the data connections. 

     

    Now I am trying to solve a different problem with the same test environment.  As we continue to upgrade the "production" application, I don't want to have to then make those same changes to the test version.  However, if I just save as copy and replace the old one, I am concerned I with either or both:

    1) Lose all of the shares already set up (so I have to re-share the test app to all users every time there is an update)

    2) The link to the app will change, confusing my user base for the test application because the link changes every time

     

    Any suggestions would be greatly appreciated.

    Thanks.

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @Pegger ,

    Covering your two questions

    Lose all of the shares already set up (so I have to re-share the test app to all users every time there is an update)

    You can choose the "update" option in the export and import file, meaning the shares should stay. Also if you use security-enabled 0365 Groups for sharing, you can share both the SharePoint List and the Power App with the Group, meaning you only have one share to deal with.

    The link to the app will change, confusing my user base for the test application because the link changes every time

    Using option 1 above, this will not happen. Also if SharePoint sharing is set at Site level, replacing the list will not be an issue.

     

    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.

     

  • Pegger Profile Picture
    84 on at

    Thanks @WarrenBelz 

    I will try both of these.  Going to close this thread for now, but will use it again if I have more questions on the same topic.  Thanks again!

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
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard