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 does not ...
Power Apps
Answered

Deep linking does not show gallery collection details in Powerapps

(1) ShareShare
ReportReport
Posted on by 222
Hi,
 
I have a Powerapps as follows:
The user will be directed to a form, when the gallery item is selected and the details will be displayed as per below.
 
The canvas app has a repeating section gallery.
Within the app, I have used the Param function in App.Onstart to send a deep link to a user.
Set(varIssue, Value(Param("AssetID")));
If(varIssue<>0, Set(varEditTask,LookUp('Asset', ID= varIssue)));
 
When the user receives the link and tries to open the link, the form will display but not the collection
How do I get the details of the collection that have been saved to display when the deep link is sent and opened?
 
Kind regards
 
 
Rene Voller
Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    3,333 on at
    It looks like you are dealing with a timing issue in your App.OnStart logic. When you use a deep link with Param(), the app starts, sets the variable, and attempts the LookUp, but the collection is likely not being populated because the data fetch for the child records hasn't finished or isn't being triggered correctly by the varIssue variable.
     
     
    Fixing the Deep Link Collection Issue
    The reason your collection is empty is that App.OnStart runs before the data sources are fully initialized for the gallery.
    The Solution: Use a Collect trigger in the OnVisible property.
    Instead of relying solely on OnStart to populate the collection, use the OnVisible property of the screen where the form is located.
    • In App.OnStart: Keep your Set(varIssue, ...) logic.
    • On the Screen OnVisible Property:
    • Code snippet
    If(varIssue > 0, 
        ClearCollect(colAssetDetails, Filter('YourChildTable', ParentAssetID = varIssue))
    )
    • Why this works: The screen OnVisible only triggers once the app has successfully navigated to that page, ensuring the varIssue variable is already set and the connection is ready to filter your collection.
     

    Thanks
    Manish
     
     
  • Verified answer
    deepakmehta13a Profile Picture
    369 on at
    Hi @RVoller ,

    This is a classic deep linking scenario! The reason your repeating section is empty is because you are bypassing the normal UI navigation.

    When a user uses the app normally and clicks an item in your main gallery, the OnSelect property of that gallery likely has a formula that populates the collection for the repeating section before navigating to the form.

    When a user opens the deep link, App.OnStart runs, but right now it is only looking up the parent record (varEditTask). It never triggers the code to fetch the child records into your collection.

     

    The Solution: Add the Collection Logic to App.OnStart

    You need to replicate whatever ClearCollect formula you use in your gallery's OnSelect property and place it inside your deep link If statement.

    Update your App.OnStart formula to look something like this:

    Set(varIssue, Value(Param("AssetID")));
    
    If(
        varIssue <> 0,
    
        // 1. Set the parent record (you already have this)
        Set(varEditTask, LookUp('Asset', ID = varIssue));
    
        // 2. Populate the collection for the repeating section
        ClearCollect(
            colYourCollectionName,
            Filter('YourChildTable', ParentAssetID = varIssue)
        )
    );
    
     

    How to implement this:


    1. Go to your Main Screen and check the OnSelect property of the gallery (or the specific edit pencil icon) that normally opens this form

    2. Find the ClearCollect formula you use there to load the repeating section

    3. Copy that exact ClearCollect formula

    4. Paste it into your App.OnStart right after your Set(varEditTask...) function, separating them with a semicolon (;). Just make sure the Filter references varIssue instead of ThisItem.ID

    Once you do this, the deep link will fetch both the main asset info and the related child records for your repeating gallery at the exact same time.

     


    If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario. If you found this helpful, you can also click "Yes" on "Was this reply helpful?" or give it a Like.
  • RVoller Profile Picture
    222 on at
    Thank you for your post.  Yes, it worked.  I can now display gallery items.
    Have a good day further.
    Kind regards
    Rene Voller

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard