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 / Power Apps Deep Linkin...
Power Apps
Unanswered

Power Apps Deep Linking from one app to another not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am building an app that is meant to serve as a central hub app that will allow the user to navigate to several smaller apps that use the same data source. I would like for the user to be able to click a button within the main app and be transported to a specific record within the target app. 

I have set a variable using Employee ID and the target app pulls the correct Employee ID in the URL but does not navigate to the specific record. Here's my setup for the main app:

 

OnStart: Set(varEmpID, Value(Param("EmpID")));
If (varEmpID <> 0, Set(varRecord, LookUp('Data Source', ID = varEmpID)))
Items: Search('Data Source',TextSearchBox1.Text,"Title")

Next Arrow: Set(varRecord, ThisItem); Navigate(DetailScreen1)

 

Here's my setup for the target app: 

OnStart: Set(varEmpID, Value(Param("EmpID")));
If (varEmpID <> 0, Set(varRecord, LookUp('Data Source', ID = varEmpID));Navigate(DetailScreen1))

Items: Search('Data Source',TextSearchBox1.Text,"Title")

 

For both apps the Visible field of the start screen gallery is set to True and OnSelect is set to Navigate(DetailScreen1, ScreenTransition.None)

 

On both apps I also have the retired feature "Enable Navigation Function in App.OnStart" toggled on as well.


Any help on this is really appreciated.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    This would be a good time to embrace the new StartScreen property of the app.

    Looking at the Target app...

    StartScreen property formula:

    If(!IsBlank(Param("EmpID")), DetailScreen1)

    In the OnStart:

    Set(varEmpID, IsError(Value(Param("EmpID")), 0));
    Set(varRecord, LookUp('Data Source', ID = varEmpID))

    If no param is passed, then varRecord will be blank. No need to check with an If statement.

     

    If your Detail screen is a form to display the record, then make sure the Item property of your form is varRecord

     

    NOW...for your main app, I am not seeing where you are redirecting the user to the target app.  You only are navigating to a detail screen.  So, I am not sure your intentions there.

     

    I hope this is helpful for you.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @RandyHayes , thanks for your quick reply. 

    So far the start screen formula looks good, for the OnStart formula I'm getting the following error: 

    Set(varEmpID, IsError(Value(Param("EmpID")), 0));
    Set(varRecord, LookUp('Consultant Status Data Source', ID = varEmpID))

    where "IsError(Value(Param("EmpID")), 0)" returns "Invalid number of arguments: received 2, expected 1."


    Also you're right, I forgot to include the launch formula. From the main app, the button has the following OnSelect property:

    Launch("https://apps.powerapps.com/play/ed4b48f9-6e6a-4b63-a845-c010a9509f39?tenantId=1bfdb7d0-7a06-490b-a64c-29d7d645ad82EmpID=" &varRecord.ID &"")

     

    Thanks again

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    What the F?...yes the F is what I mistyped. 🤣🤣  IfError, not IsError!!

     

    Formula should have been:

    Set(varEmpID, IfError(Value(Param("EmpID")), 0));
    Set(varRecord, LookUp('Consultant Status Data Source', ID = varEmpID))

     Sorry about that.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @RandyHayes ,

     

    Haha. That resolved the error message but I'm still being taken to the browse screen of the app, it's still failing to launch to a specific page/record. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    When you say "I'm still being taken to the browse screen of the app" - are you saying the browse screen of the target app or the main app?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes 

    The browse screen of the target app. The launch function is opening the target app, the code is in place, and the URL of the target app has the corresponding employee's ID at the end, but it still fails to open to the detail screen as it should. 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard