Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Answered

Deep Link stopped working

Posted on by 61
Hi power team,
I have an app that has Deep Links and last week they were working but this week not. 
No update to the app that I have made so not sure why this would happen. 
 
In the OnStart of the app I have 
If(Param("DeepLink") = "DocRepos",Navigate(srnDocumentRepositoryCreator))
 
At the end of the URL for the app I have 
&DeepLink=DocRepos
 
But the link keeps going to the home screen. 
 
I have tried this in private mode, on different browsers and evern different computers and users.  Everytime it is not working. 
 
Any ideas on why this would be and how to fix?
 
Thanks, 
 
 
 
  • WarrenBelz Profile Picture
    WarrenBelz 143,487 on at
    Deep Link stopped working
    Yes - the easiest way is to put the record Parameter filter OnVisible of the target screen (using Param("ID") as an example
    If(
       !IsBlank(Param("ID")),
       Set(
          gblRecord,
          LookUp(
             SPList,
             ID = Value(Param("ID"))
          )
       )
    )
    To match this, you would put OnSelect of the gallery you are normally navigating from (assuming the gallery is directly based on the actual list)
    Set(
       gblRecord,
       ThisItem
    );
    Navigate(YourFormScreen)
    then the Item of the Form
    LookUp(
       SPList,
       ID = gblRecord.ID
    )
    There are also other advantages to this structure.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     
  • EricSara77 Profile Picture
    EricSara77 61 on at
    Deep Link stopped working
    Hi Warren,
    Can you use the StartScreen to navigate a user to a page and load it with a record? 
    Cheers
  • WarrenBelz Profile Picture
    WarrenBelz 143,487 on at
    Deep Link stopped working
    Yes rather unusual if you have the Navigate OnStart turned on and the same code works on StartScreen, however I removed all my OnStart navigation code some time ago as I knew it would eventually be deprecated, so there may have been an issue with an App version affecting this.
  • EricSara77 Profile Picture
    EricSara77 61 on at
    Deep Link stopped working
    Hi Warren,
    You are a legend. 
    I did have the update on and the URL did have the parameter. So no idea why this is not working. 
    However the addition of the code to the StartScreen was the key. 
    Thank you so much. 
     
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 143,487 on at
    Deep Link stopped working
    First question - do you have this turned on ?
    and have you checked the incoming URL to ensure the parameter is at the end. 
    The other thing to try is use the StartScreen property 
    If(
       Param("DeepLink") = "DocRepos",
       srnDocumentRepositoryCreator,
       YourHomeScreen
    )  
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard