Skip to main content

Notifications

Power Apps - Building 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.  
 
  • Verified answer
    weiyifan Profile Picture
    weiyifan 31 on at
    Deep link does not work between environments
    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
    SaiRT14 1,926 on at
    Deep link does not work between environments
     
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard