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 / Deep Link to Change Ga...
Power Apps
Answered

Deep Link to Change Gallery Filter On Loading the App

(0) ShareShare
ReportReport
Posted on by 122

So my app is setup pretty cleanly. Left side is a gallery, right side is a form. The gallery fills the form based on selection. I have deep linking setup where I email a link to a specific selected gallery item. It all works great.


However, here’s my issue. My gallery is filtered by a combo box. It has three options: Active, Completed and Cancelled. The filter defaults to Active to show active tickets in the gallery.


I’d like it so when the deep link URL loads the app, it sees if the ticket loading is active, complete or canceled and auto-select the correct filter and then select the correct item in the gallery. 

Currently, if a ticket is active, my setup works greats. The link loads the app, loads the form and selects the correct item in the gallery. However, if the ticket is complete or canceled, it still loads the ticket information in the form, but the gallery stays showing the active tickets filter list.

Is there a solution to my issue? Thanks!

 

 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @PowerAppsHori 

     

    Looks like, status is not passing to the deep link. Can you share the Item property on the Gallery (in deep link) and deep link? 

  • PowerAppsHori Profile Picture
    122 on at

    The deep link works fine I think. It’s just there’s no logic anywhere to change the filter when you click the deep link from the email. If a ticket has the status of complete, I’d like the app to look for that and then select the correct filter of the gallery drop down .

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Then need to verify the "Default" property on the dropdown. And share the parameter you are passing. We need to use the parameter to set the default dropdown value

  • PowerAppsHori Profile Picture
    122 on at

    Right now I have Default forced to [“Active”] to make that the default choice. Items is Choices([SharePoint source].’Gallery Filter’).

     

    The ‘Gallery Filter’ feeds the drop down the three options of active, complete or canceled.

     

    I’d like to add some logic that says use the selected item’s status, otherwise default to active. Is that possible?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Yes, default is causing the issue. We need logic to set it up.

     

    For example,

     

    1. Passing parameter https://.....?SelectedStatus=Active

    2. Receive the param on App onstart

    If(
     !isblank(
     Param("SelectedStatus")
     ),
     Set(vSelectedStatus,Param("SelectedStatus")
    )

     3. Set the default property on Dropdown

  • PowerAppsHori Profile Picture
    122 on at

    I’ll test this out momentarily and get back to you! One more question, what you provided may solve the issue of the deep link. 

    however, the app has a main page where people can select the various pages/screens within the app. If someone comes into the tickets page from the homepage, I’d like it to default the filter to Active. Can I add some code in the button to do that? Right now all the button does it navigate to the ticket page.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Yes, definitely we can add some conditions to make some default value. Are you using dropdown or combo box? since the code to set default is different.

     

    Example to set the default for combo box

    StalinPonnusamy_0-1626840861485.png

     

  • PowerAppsHori Profile Picture
    122 on at

    Sorry for the dumb questions but not sure what to set as default value. I put the variable in there but that didn’t work. I now have LookUp(SharePoint Source, ‘Gallery Filter’.Value = vSelectedStatus) but that didn’t work. I may also be writing the deep link URL wrong.

     

    right now for the deep link I have &TicketID=(the Id of selected item). Do I just put ?SelectedValue=(the drop down value) after it?

  • PowerAppsHori Profile Picture
    122 on at

    Using Combo Box.

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Update the deep link to

    &TicketID=(the Id of selected item)&SelectedValue=(the drop down value)

    On App Start

    If(
     !isblank(
     Param("SelectedValue")
     ),
     Set(vSelectedValue,Param("SelectedValue")
    )

    Set the DefaultSelectedItems property to the combo box

     

    Syntax
    LookUp(Choices(SPList.SPColumn),Value=vSelectedValue)
    
    Example
    LookUp(Choices('Issue tracker'.Priority),Value="Normal")

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard