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 / Model Driven app Navig...
Power Apps
Answered

Model Driven app Navigation Pane URL

(1) ShareShare
ReportReport
Posted on by 25

Is it possible to use an environment variable in a URL link inside the Model‑Driven App navigation pane, so that the URL automatically changes based on the environment?

Categories:
I have the same question (0)
  • Verified answer
    Gil0 Profile Picture
    128 on at
    Hello @JJ-27101724-0
     
    Unfortunately, the Navigation link component is a static value.
     
    A workaround for this is to create a custom page and use the Launch function within the OnStart property as it will allow you to use the environment variable. 
     
    If my response helped figure out the issue, please mark as resolved so it helps direct others.
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @JJ-27101724-0
     
    No, In a Model-Driven App, the navigation pane URL does not support environment variables.
     
    Workarounds:
    #1. Use a custom page / web resource that reads an environment variable and then redirects to the correct URL.
    #2. Use a Power Apps Custom Page and build the link dynamically using Dataverse data (including environment variables).
    #3. Maintain separate app versions per environment and update the URL manually (simple, but less elegant).
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard