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 / Banner color change fo...
Power Apps
Unanswered

Banner color change for DEV, TEST, PROD using Environment variable

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Everyone @RezaDorrani ,

Hope You all are doing good!!

 

I have a requirement to change the banner color on the landing page in canvas app based on the environment.

 

Dev=red,

Test=green,

Prod=Blue.

 

I am looking out some links and suggestions where I can get some ideas to do this using environment variables.

 

Could you please help

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Anonymous ,

     

    I have put together a formula for a fill property that will accomplish the most part of what you want. The only thing that is missing, and is not yet possible as far as I can see, is to get the app-id from within the app itself. This means you will have to fill that out manually:

     

    Switch(
     LookUp(
     PowerAppsforMakers.GetEnvironments().value,
     Lower(id) = Lower(
     LookUp(
     PowerAppsforMakers.GetApps().value,
     name = "APP-ID"
     ).properties.environment.id
     )
     ).properties.environmentType,
     "Production",
     Blue,
     "Test",
     Green,
     "Development",
     Red,
     Red
    )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @BCBuizer Thank you for your suggestion

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @Anonymous ,

     

    If you would like to have the feature to retrieve the App-ID from within the app, please consider upvoting this idea: https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Function-to-retrieve-App-ID/idi-p/376495.

     

    Until that's been implemented, unfortunately you'll have to set the App-ID manually in each instance of the app to get the desired outcome.

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

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard