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 / How to identify the en...
Power Apps
Answered

How to identify the environment of a Power App using SharePoint (non-premium app)?

(1) ShareShare
ReportReport
Posted on by 3,291
I’m currently working with an existing Power Apps canvas app and I’m trying to determine which environment it belongs to, but I’m running into some challenges.

The app is a non-premium canvas app
It uses SharePoint as its data source
 
Since the app is using only standard connectors (SharePoint), I’m finding it difficult to identify the environment it belongs to. Unlike apps using Dataverse or premium connectors, there doesn’t seem to be an obvious reference to the environment within the app itself.
 
What I’ve Tried
 
Checked the app details in Power Apps Studio
Reviewed the SharePoint list connections
Looked for any environment hints in URLs or app metadata
So far, I haven’t been able to confidently determine the environment.
 
Question
What would be the best way to identify the environment of a Power Apps app when:
It is non-premium
It uses SharePoint as the data source
And there are no clear indicators in the app itself like using HOST.
 
I have the app in 3 Env DEV, TEST and PROD. I would like to add a banner that indicates in which app I am currently working.
 
Are there recommended approaches, tools, or admin-level checks that could help in this scenario?
Any guidance or best practices would be greatly appreciated.
Thanks in advance!
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    69,521 Most Valuable Professional on at
    The way I've done this in the past is to create an environment variable to hold the name of the environment.  But since you can't read environment variables directly in Power Apps without a Premium license I call a Power Automate flow from the app on Startup. The flow reads the environment variable and returns the name of the environment. Environment Variable values are available in a flow without needing a Premium license.  Just be aware that they won't show up in dynamic content until you save the flow once.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Sajarac Profile Picture
    3,291 on at
    Thank you very much for your prompt response.

    That will be the solution to implement. 

    Silly question?

    What is the flow action to call the Env Variable? 

    Regards
  • Verified answer
    Pstork1 Profile Picture
    69,521 Most Valuable Professional on at
    @Sajarac You don't need a specific action.  The Environment variable will show up as dynamic content in the dynamic content list.  Here's an example.
     

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 408

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 319

Last 30 days Overall leaderboard