Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Deep Linking not working with filter

In my application, I have set up a deep linking which is working and is fine. The deep linking takes the user to a Gallery, selected record.

But, I recently tried to add a filter to Gallery to "Show only Open items". When I activate this filter, the the deep linking only takes the user to Gallery screen and does not select the record.

detail as below:

Normal scenario without filter on Gallery which deep linking is working:

Items: in Gallery:


CBProjectList is a combo box  to select a project


When I have the above filter, everything works as expected.


But, when I add another criteria to filter, then the deep linking will not select the record in Gallery:







Super User
Super User

Hi @AmirGh ,

Firstly try this

   CTRProjectNumber=CBProjectList.Selected.Result && 
      !OpenOnlyCB_1.Value ||
         Status.Value<>"Approved" && 
         Status.Value<>"Superseded" &&


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.


Hi, Still the same issue.

A bit more detail: This is what happens when Deep link clicked with the additional filter





But, with the basic filter, it select the record.



Just wondering the default value for the tick box can make a difference? It is unticked as the default as I assumed that is better

@AmirGh ,

How are you selecting the record with the deep link criteria? What you have there selects from a drop-down with additional criteria on a checkbox.

Helper I
Helper I

The Gallery On Select: Set(VarSelectedCTR, ThisItem)

the Gallery default: If(VarSelectedCTR.ID<>0,VarSelectedCTR,Blank())

The deep link email notification:

<p>Select <a href='*************&CheckID="&VarSelectedCTR.ID&" '> link to the application </a> to update.</p>");


App, On Start:

Set(VarURLID, Value(Param("CheckID")));
If(VarURLID <>0, Set(VarSelectedCTR,LookUp(CTRList, ID=VarURLID));Navigate(CTRSubmission))

Hi @AmirGh ,

I am a bit lost here - where does varSelectedCTR (the deep linked record) come into this?


VarSelectedCTR is a variable which is set to the selected item in gallery. This is required for other reasons in the application and works better than just referring to "Gallery.SelectedItem".

Each record has an ID in the data source, Once selecting record, VarSelectedCTR is set to the selected record.

then CheckID= VarSelectedCTR.ID.

So, when clicking on the deep link, it should take the user to the screen and select the record which its ID = VarselectedCTR.

It works well with filter on one criteria, once adding a new filter, then it somehow make the variable blank and does not selected any item in gallery

Hope this clarifies.

HI @AmirGh ,

I will go back a step here and tell you what I do (I have several apps that work this way).

On the Gallery OnSelect


then the Form Item


 on the incoming App OnStart


This makes the filter on the gallery irrelevant - you simply set a Global Variable to the ID of the item in the form , either by selecting the item in the gallery, or by the incoming parameter.


Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helper I
Helper I

Thanks for your response.

I can't remove the filter as the deep link is only one way of working in the application. People directly go to application and filter on the project that they want.


@AmirGh ,

Sorry, I am a little lost again - what is the OnSelect of the gallery?

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,250)