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 / Deep link does not wor...
Power Apps
Answered

Deep link does not work between environments

(1) ShareShare
ReportReport
Posted on by 31
Hello!
 
I've built a model driven power app with several automated cloud flows. The flows send emails with a deep link so the user can access a specific record.  It works in the developer environment.  However, the link is broken in the production environment.  I compared the URLs and they are different.  Clearly, I need to use the production environment URL, but what is the best way to do this?  
 
Option 1: Put the production environment URL (plus dynamic content for GUID) into the deep link of the flow in my developer environment. Then export as is.  
Option 2: Create a variable to use either the production or environment URL in the flow.  I don't know how to do this, but a user who is no longer active mentioned this in a post last year: 
Any advice on the best way to manage this would be much appreciated.  
 
Categories:
I have the same question (0)
  • SaiRT14 Profile Picture
    1,992 Super User 2025 Season 1 on at
     
    Environment variables are the best way to manage URLs for dynamic deep linking i
    or
    For simple logic, use the Workflow() function to retrieve the current environment's URL dynamically
     
    thanks
     
  • Verified answer
    weiyifan Profile Picture
    31 on at
    I finally found the answer to this.  I need to create an environment variable in my model driven app and update my flows with this variable.  I needed to create another variable within the flows to create a deep link.  My environment variable is named "URL to Record": 
     
     
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard