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
)