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 Apps - Building Power Apps
Answered

Creating Environment variables

(1) ShareShare
ReportReport
Posted on by 423
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
    423 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
    423 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard