web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using a Power App as a...
Power Apps
Answered

Using a Power App as a template.

(1) ShareShare
ReportReport
Posted on by 438
I work for a large organisation and in my department we have many documents which we use over and over again. these are audit documents, or task lists. As an exercise to streamline the processes we have, I have been to try and streamline these tasks, automate them etc.
 
By using an automated system it will cut down on non value added activities, as well as being able to do these tasks on a mobile electronic device we will reduce paper/ink wastage. I have spent quite a lot of hours creating Power App templates to allow us to easily achieve. However when I come to use the template I run into so many issues.
 
For example I have just set up a Task List template which uses a datasource of a SharePoint list. There are only a few columns - Title (Text), Status (Choice), Due Date (Date Picker), Task Type (Choice). Priority (Choice) & Task Description (Multiline text).
I have a Gallery Screen and a New Task Screen. Using a SharePoint list template, the app works perfectly well. Tested many times to ensure all the functionality and it works fine. The trouble comes where I want to change the Data Source to an identical (Renamed) SharePoint list. Although changing the gallery is pretty painless and it is fairly straight forward to update to the new data-source, the New Task screen is far from easy. When I look at the New Task form there are so many more error flags and I am having to update numerous controls with the new data source. Even when I repair links to the new data source many of the controls do not work, especially combo boxes.
 
Is there a more round about way to tackle this type of problem. I am probably doing it all wrong. I would like to be able to delegate these tasks to guys within the team who are not very savvy with things like this.
 
 
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    You can probably use an environment variable to point to the SharePoint site and list so that the only change you have to make would be the variable.
     
  • nshaw75 Profile Picture
    438 on at
    Hi @ronaldwalcott , thanks for the reply. i will give it a look over.
     
     Definitely looks like the solution to use the Environment variables, just going to have to watch some YouTube i think to learn how :).


    Thanks again
  • nshaw75 Profile Picture
    438 on at
    @ronaldwalcott Thanks for pointing me in the right direction.
     
    Do you know if a solution with environment variables can be set up using an existing Power App. All the YouTube videos I have seen are using brand new apps to set this up. When the new app's data source is linked the data source/s are linked in the solution too. Whereas every time I try adding the pre existing app the data sources are not shown on the Solution screen.  I have changed the setting to automatically create environment variables when adding data sources but this hasn't helped, or hasn't been triggered.
     
     
  • Verified answer
    ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    The only way that I can think of is to create data sources with environment variables then remove the existing data sources from the application and replace them with the ones created with the environment variables. You will have to edit the application to remove the errors which will be generated.
  • nshaw75 Profile Picture
    438 on at
     
    I will have a go. It's was a nightmare creating the app hence why I wanted to set it up as a template. Once it is done though should be plain sailing 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard