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:
- Go to your Main Screen and check the
OnSelect property of the gallery (or the specific edit pencil icon) that normally opens this form
- Find the
ClearCollect formula you use there to load the repeating section
- Copy that exact
ClearCollect formula
- 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.