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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating Environment v...
Power Apps
Unanswered

Creating Environment variables

(1) ShareShare
ReportReport
Posted on by 438
I have been trying to set up a Power App template and have tried using the Power App Environment Variables.
 
I have created the template as a solution setting the data source as variables.  I have got the solution to work and when it is exported, with replacement sata sources, then Imported it works great.
 
The issues I am experiencing, I am assuming, is due to the fact that I am locked into one specific environment. I am assuming to use this as a template I need to store the "Template" solution in a separate environment from where i want to copy it to.  Am I right in my assumption and is there a way around this? 
 
 
 
Categories:
I have the same question (0)
  • scalca Profile Picture
    243 Moderator on at
    Creating Environment variables
    I'm trying to understand what the issue is ? 
    if you implemented a solution as template with environment variables you can just export and import into another environment and then setting up the variables for where you want to import it.
     
  • nshaw75 Profile Picture
    438 on at
    Creating Environment variables
     
    Thank you for the reply, my issue is due to me not being able to export to another environment as i am only allowed, by my company IT rules, to access one our default environment.
     
     
  • Verified answer
    scalca Profile Picture
    243 Moderator on at
    Creating Environment variables
    Environment Variables exits within that specific environment only
    if you create a copy of the original template, you are still connecting to the same variable
    all changes to the variable will affect all apps in the same environment connected to the variables
     
    in this case what I would do is not to use environment variables
    I would setup the variables within the app itself (e.g. in Formulas or OnStart), where makers would update them according to their case
     
    Environment Variables are suitable if you work with different environments
  • nshaw75 Profile Picture
    438 on at
    Creating Environment variables
    Hi @scalca,
     
    Happy New Year. Thank you for your reply before I finished before Christmas I realised the hard way by doing a few rigorous tests. For me to throw my hands up and say forget about it until the new year. 

    I will have a look at this later on and use the app variables instead.

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard