web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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)
  • 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": 
     
     
     
     
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 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
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard