cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
theisogunro
Helper IV
Helper IV

Deeplinking parameters causing confusion in App

I have a SharePoint list being rendered through a PowerApp dataTable onto the page(shows a list of sharepoint items).  One of the columns is a link that takes the user to a pop-up showing the details of the single item that was selected, so updates can be made.

theisogunro_1-1627489408858.png

 

When I provide a link to the specific item using DeepLinking (https://play.apps.appsplatform.us/play/xxx83938?tenanteid=03923&requestID=59), I am successfully taken to that specific item.  Here's the issue I am facing, when I navigate away from the item back to the PowerApps page with the list of items and click on a different link, it still shows the item from the deeplinking.  I believe it's because the url doesn't change and my app is still referencing the item with reqeustID=59 which is in the URL.

How can I fix this?

Here's what I have on the App OnStart

 

 

Set(firstRun,true);
If(
    Value(Param("requestID")) <> 0,
    Set(
        itemID,
        LookUp('Registration', ID=Value(Param("requestID"))
     )
   );
   Set(firstRun,false);
   Navigate(EditScreen)
)

 

 

10 REPLIES 10

Yes, that's correct.  I want the app to use SelectedItem instead of the itemID

 

If(Value(Param("requestID")) <> 0, itemID, SelectedItem)

I will try your suggestion of adding the set when navigating away

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,062)