@RandyHayes
@WarrenBelz
Hello Randy and Warren,
I'm having a bit of an issue with deep linking. I have a flow that is triggered when a new item is created. As you can see from the second screenshot, the deep link seems to be setting to the correct ID for Gal Gadot, but the gallery defaults to the first item in the list "Chris Evans", instead of jumping down to Gal Gadot. If someone is accessing the Onboarding Tasks screen from the menu screen, I would like it to default to the first item in the list and show the onboarding tasks associated with that person, but if they click on a link in an email, I would like the gallery on the left to highlight that name and have the gallery on the right display the onboarding tasks for that person.

Here is a screenshot of what the Onboarding Tasks screen looks like when you click the deep link. The correct ID is in the url at the top (73), but the gallery defaults to the first item on the list.
The end of the url reads:
&hidenavbar=true&DeepLink=OnboardingTasks&RefID=73

OnStart of App formula:
Set(varRefID, IfError(Value(Param("ID")), 0));
Set(varRecord, LookUp('CSO Staff List', ID = varRefID))
StartScreen:
If(!IsBlank(Param("RefID")) && Param("DeepLink")="OnboardingTasks",
'Onboarding Tasks Screen',
Param("DeepLink")="NewHireForm", 'New Hire Entry Screen',
Param("DeepLink")="OnboardingTasks", 'Onboarding Tasks Screen',
Param("DeepLink")="CSOStaffList", 'CSO Staff Member Screen',
'Menu Screen')
Left Gallery Items:
SortByColumns(Filter(
'CSO Staff List',
txtSearchBoxOn.Text in 'Full Name'
&&
'Employment Status'.Value = "Onboarding"
),"Title", Ascending)
Left Gallery OnSelect:
Select(iconNextOn)
Left Gallery Default property field has no formula in it.
Right Gallery Items:
SortByColumns(
Filter(
'Onboarding Tasks',
'Parent ID' = varRecord.ID && (Status.Value = galStatusFiltersOn.Selected.Value || galStatusFiltersOn.Selected.Value = "All"),
(!ckMyTasks.Value || ckMyTasks.Value && 'Assigned To Email' = varUser.Email)
),
varSortColumn,
varSortDirection
)
Right Gallery OnSelect is set to false.
Right Gallery Default:
First('Onboarding Tasks')
I believe the Right Gallery Default is probably the problem. If I need an If statement there instead can you help me with the proper way to right it? This is the first time I have created an app with 2 galleries on the same screen like this so I would appreciate your guidance. Let me know if there is any other info you need. Thanks so much!
Teresa