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 / SharePoint List Deep L...
Power Apps
Answered

SharePoint List Deep Linking working with hyperlink but OnSelect in Browse Galley not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I was able to get the Deep Linking working from a hyperlink.  It is brilliant!

https://web.powerapps.com/apps/<appid>?ID=37

 

BrowseGallery1

Add a Timer Control

OnTimerEnd  

If(Not(IsBlank(Param("ID"))),Navigate(DetailScreen1, Cover,{device:LookUp('Listname', ID = Value(Param("ID")))}))

AutoStart of timer

true

Visible property of timer

false

Duration of timer

600

Hint

Inserted label with Text   Param("ID") to see if ID was getting set properly

 

 

DetailForm1

Item

First(Filter('Listname',ID=Value(Param("ID")))) 

 

This works great when linking from an email, for eample

 

If I use the app, and click the OnSelect in the BrowseGallery 

It hangs on Getting Your Data

The OnSelect is set to Navigate(DetailScreen1, ScreenTransition.None)

Does anyone know if I need another if statement in the OnSelect?

Thank you,

Joanna 

 

getting your data.png
Categories:
I have the same question (0)
  • Verified answer
    Dawidvh Profile Picture
    1,346 on at

    Hi @Anonymous

     

    Nicely done for getting the deep linking from URL to work, it is a very handy feature.

     

    I am not sure about your exact requirements, but there shouldn't be need to use deep linking or URL parameters on the onselect while you are in the App already. The param function is only used in the URL that the App is launched with, so once you are in the App, you can use other ways to navigate to the record. The Form control needs to know when record it is working with and the easiest way to do this is by pointing it to the record that is currently selected in a gallery (Gallery1.Selected). 

     

    To have both the deep linking and the OnSelect button working in the App, you can use a variable to specify the record that should be accessed by the Form. Specify the Item on form to be varRecordToOpen. On the gallery.onselect, specify the following to set the record variable before navigating to the form screen.

     

    Set(varRecordToOpen,Gallery1.Selected)

     

     

    You can now set the same variable on the app OnStart in the event that the param is present in the URL which will tell the app that this was launced with the instruction to open a specific record, before navigating to the Form screen.

     

     

    If(!IsBlank(Param("ID")),
    Set(varRecordToOpen,First(Filter('Listname',ID=Value(Param("ID"))))))

    Let me know if you don't come right.

     

    twitter: @dawidvh

    youTube: https://www.youtube.com/channel/UCIMe_ErQZP5chbI9UyW0xLw

    >>If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions.<<

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Dawidvh,

    Thank you so much for responding.

    I added the following to the Gallery OnSelect   Set(varRecordToOpen,Gallery1.Selected);Navigate(DetailScreen1, None)

    Then, I added to the OnStart in the App If(!IsBlank(Param("ID")),
    Set(varRecordToOpen,First(Filter('Listname',ID=Value(Param("ID"))))))

     

    The URL with a param still works however, when I use the app, I am still getting the message Getting your data...

    I tried a new app just to make sure and I am having the same issue.

     

    Is there something else I need to change?

     

    I am using the timer with OnTimerEnd 

    If(Not(IsBlank(Param("ID"))),Navigate(DetailScreen1, Cover,{device:LookUp('Listname', ID = Value(Param("ID")))}))

     

    The  Detail Form Item has First(Filter('Listname',ID=Value(Param("ID")))) 

     

    Thank you very much for helping me,

    Joanna

     

     

  • jhall Profile Picture
    636 on at

    Previously, you could not do a Param() function in the OnStart section.  You needed to do it in OnVisible and/or with a Timer set to AutoStart and wait a small amount of time to get this to work properly.  This might still be the case.

    I did a bit of a writeup on it awhile back here:

    https://persnicketypowerapps.blogspot.com/2018/09/passing-parameters-into-your-app.html

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Waited and it still is not working.  I think the only thing I can do is to use this app for hyperlinking and then create another app for browsing all items.

     

    I am hoping someone will write up how to do a hyperlink to an item and still use the same app for browsing items.

     

  • jhall Profile Picture
    636 on at

    I will say that this certainly shouldn't be the case.  I did this on my last published application w/ click-through to screens passing parameters from SharePoint list items.  You might take just a moment to first make 100% certain the ID is passing in and being assigned (e.g. assign it to a label on-screen).  That's really the most likely issue that can happen.

  • Dawidvh Profile Picture
    1,346 on at

    Hi @Anonymous

     

    We do this all the time, to have an app with deep linking as well as browsing the gallery. If you are willing to share the app we can look at it for you.

     

    Otherwise send it to dawid.vanheerden@ukuvuma.co.za.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so much, Dawid for spending so much of your valuable time explaining variables, how to navigate through the options and how to troubleshoot the PowerApps.  You have saved me so much time.  I am going to write up your solutions to share with others.

    Best,

    Joanna

  • Dawidvh Profile Picture
    1,346 on at

    Glad I could help Joanna, thanks for your time this morning.

     

    Enjoy the rest of your day!

  • annie11 Profile Picture
    2 on at

    Can you please share the solution i am also facing the same issue.

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 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard