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!
Solved! Go to Solution.
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")
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 .
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
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?
Yes, default is causing the issue. We need logic to set it up.
2. Receive the param on App onstart
If( !isblank( Param("SelectedStatus") ), Set(vSelectedStatus,Param("SelectedStatus") )
3. Set the default property on Dropdown
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.
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
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?
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.