Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

Deep linking into my app

Like (1) ShareShare
ReportReport
Posted on 15 Oct 2024 18:51:46 by 4
Hi there - 
 
I have a power app that almost does what I want. It's backed by a Sharepoint list and displays details about upcoming features. I have a left nav vertical gallery (called LeftNav) that filters the features by a couple of dropdown options like priority. The OnSelect function I originally had in place is Select(Parent)
 
On the right I've got a main container that holds text input and dropdown fields to display (and edit, in edit mode) the columns that describe the feature. They set the default value based on the left nav selection, like LeftNav.Selected.Title.
 
All is working beautifully so far. 
 
I want to create a deep link that causes the left nav to select the ID that's specified in the URL. I have a deep link creator button that links to my app with an OnSelect property of  Launch("[appURL]?ID=" & LeftNav.Selected.ID). That part works - I get a properly functioning link with the ID appended as a query string. But that URL doesn't cause the screen to focus on the feature ID that's specified in the URL - I still get the default view. 

I've got the left nav items' OnSelect property  set as 
Select(Parent); 
Set(SelectedFeatureID, ThisItem.ID); 
 
I've got the app's OnStart property set as 
If(
    !IsBlank(Param("ID")),
    Set(SelectedFeatureID, Value(Param("ID"))),
    Set(SelectedFeatureID, Blank())
);
 
And I've got the screen's (there's only one) OnVisible property set to 
 
If(   
    !IsBlank(SelectedFeatureID),   
    Set(SelectedFeatureItem, LookUp(Features, ID = SelectedFeatureID)),
    Set(SelectedFeatureItem, Blank())
);
 
I feel like I'm close, but something is missing here. Does anyone know where I've gone wrong?
  • Verified answer
    Michael E. Gernaey Profile Picture
    42,048 Super User 2025 Season 1 on 17 Oct 2024 at 07:20:58
    Deep linking into my app
    Hi
     
    What you need to do is take the incoming value, and then literally Set the gallery selected item based on that value.
     
    You are also not clear as there is no picture, on what does "it just shows the default view"
     
    My guess is, you mean that its not "going to the proper record" selecting it, and then having the view Change based on that.
     
    What you Need to do is Update the Default Property of the Gallery.
     
    In the Default, do a check
     
    If(!IsBlank(SelectedFeatureID), LookUp(Features, ID = SelectedFeatureID))
     
    And it will set the selected Item in the Gallery to THAT item, but only if SelectedFeatureId is NOT blank
     

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 98 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 73

#3
stampcoin Profile Picture

stampcoin 50

Overall leaderboard
Loading started
Loading started
Loading complete