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 / Can we use environment...
Power Apps
Unanswered

Can we use environment variables to store an email address which will differ from Dev and Prod environment

(0) ShareShare
ReportReport
Posted on by 3,506

I am working on solution inside power platform. which contain power apps and power automate. now we have an approval email address where all the submitted items will be sent to this approval email. now since this approval email differ from our Dev and Prod environments, we i am planning to create an environment variable which store this email address and reference it inside our power apps and power automate ,,, so is this a valid appraoch? i always use environment variables to store data source info,, but notsure if they are appropriate to store email address as well?

 

johnjohn123_0-1679005722207.png

 

 

Thanks

Categories:
I have the same question (0)
  • 365-Assist Profile Picture
    2,324 Moderator on at

    I believe that's a good approach. I do exactly the same. I have built an App for a Service Desk. In my Solution I have an environment variable for holding a group email address. That way when I am in Development or Test Environment the emails go to a test email account. When the Solution goes into Production the Email address is the actual Service Desk Group Account.

    ---------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

     

     

  • subsguts Profile Picture
    1,259 Moderator on at

    Yes.  Here it is in PowerApps and PowerAutomate:

    subsguts_1-1679006696437.png

     

     

    subsguts_0-1679006648472.png

     

    Hope this helps.

  • subsguts Profile Picture
    1,259 Moderator on at

    Maybe this is not what you were looking for, but I wouldn't see why an environment variable wouldn't work if another variable like my example does.  Let me know if it behaves differently... curious...

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