cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Impactful Individual
Impactful Individual

Deep Link to Gallery Item, Unnecessary Context Variable

Hi,

I followed a great guide for deep linking to a gallery item found here:

https://www.helptheusers.com/blog/?p=479

Basically it goes like this:

Set the OnStart to:

If(!IsBlank(Param(“ID”)), Set(varRecordToOpen,First(Filter(Books,ID=Value(Param(“ID”))))))

Set the gallery OnSelect to:

Set(varRecordToOpen,BrowseGallery1.Selected);Navigate(DetailScreen1,None)

Set the gallery arrow OnSelect to:

Select(Parent)

Set the form Item to:

varRecordToOpen

Create a timer on the home screen with duration 60, visible false and AutoStart true. Set its OnTimerEnd to:

If(Not(IsBlank(Param(“ID”))),Navigate(DetailScreen1, Cover,{device:LookUp(Books, ID = Value(Param(“ID”)))}))

This all works great, so if you are struggling with deep linking to a gallery item, I recommend this tutorial.

 

Here's my question for the community however. Isn't the context variable on the navigate for the timer unneeded? {device:LookUp(Books, ID = Value(Param(“ID”)))} sets a variable called device, that isn't used for anything else. I tried removing it and it seems to work just fine.

Before I put it into production without the context variable, is there something I am misunderstanding? Does anyone know why the author might have included it in the first place?

 

Thanks

1 REPLY 1
Highlighted
Community Champion
Community Champion

Re: Deep Link to Gallery Item, Unnecessary Context Variable

Thanks for posting @SKH19 - I'm going to bump this so the community can review

 

@TopShelf-MSFT 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,289)