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 Linking on a Scre...
Power Apps
Unanswered

Deep Linking on a Screen with Two Galleries

(0) ShareShare
ReportReport
Posted on by

@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. 

 

GalGadotEmailSS.png

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

OnboardingTasksScreenSS.png

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

Categories:
  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @tagustin ,

    The Default syntax would be

    LookUp(
     'Onboarding Tasks',
     ID = YourParameter
    ) 

    but I cannot see where you have sent the parameter for the second list ID as the IDRef seems to be for the other list. If however it for this list, then you can use it.

     

    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.

    Visit my blog Practical Power Apps

  • tagustin Profile Picture
    on at

    @WarrenBelz 

     

    Hi Warren,

     

    Thank you for getting back to me. I'm not sure what you mean when you say "your parameter". Can you elaborate? I'm not sure what to enter after "ID = ". Also, will this address the default behavior I want when someone is clicking the Onboarding Tasks button from the home menu screen? In that case, I do want it to default to the first item in the list.

     

    Thank you,

    Teresa

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @tagustin ,

    Are you sending the ID of the 'Onboarding Tasks' list in your Parameter RefID ? If so, you need

    LookUp(
     'Onboarding Tasks',
     ID = Value(Param("RefID"))
    ) 

     

    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.

    Visit my blog Practical Power Apps

     

  • tagustin Profile Picture
    on at

    @WarrenBelz 

     

    Hi Warren,

     

    Thank you for the suggestion. I tried inserting the formula as you have it above and I also tried this variation since the name of the Parent ID column I'm passing on in Power Automate is called ParentID (internal name)/'Parent ID' (display name). I am inserting it into the Default property of the gallery on the right side. I saved and published the app and submitted a new form. It still defaults to the first item in the left hand gallery "Chris Evans". I gave the publish a bit of time to implement and tried again, but still didn't seem to have any luck with either formula variation.

     

    LookUp(
     'Onboarding Tasks',
     'Parent ID' = Value(Param("RefID"))
    ) 

     

    To provide a little more background, the new hire request form is tied to a SharePoint list called "CSO Staff List". When a new item is created an automated work flow begins which is where I pass the ID from the CSO Staff List into the Onboarding Tasks list. I initialize a variable to fill in the ID placeholder with the current ID. This isn't every step from the flow, but the ones that seem pertinent to this question. Let me know if you need any additional info. This will probably be my last response for tonight, but I'll check for your reply when I start work tomorrow morning PST. Thanks so much for your help!

     

    FlowFirst2Steps.png

    Flow ID Variable.png

    Create Line Item in Onboarding Tasks ID.png

    EmailStep.png

     

  • WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @tagustin ,

    The fundamental issue here is if you want to deep-link to an item in a form based on 'Onboarding tasks' then you need to send that ID in the deep link parameters. I see from your Flow however that the RefID is from 'CSO Staff List', so that will not work. Doing this with a Flow, you are creating the 'OnBoarding Task' new record (albeit in an Apply to each loop) and the first ID here will be the value you want, so that is the value you need in the deep link code if it is the record you want to open.

     

    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.

    Visit my blog Practical Power Apps

  • tagustin Profile Picture
    on at

    @WarrenBelz 

     

    Hello Warren,

     

    Thank you for the guidance. I'm sorry to say I've been swamped at work and haven't had a chance to play around with my links. I have some deadlines to meet this week, so I don't think I will have a chance to work on the Onboarding Power App again until this weekend. I'll let me you know what comes of my revision efforts. I really appreciate having your advice. Have a good day in your part of the world! Teresa

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard