- From Gallery to Item
Set the link from Gallery > OnSelect = Set(varRecord, this Item) and use it instead of Gallery.Selected use varRecord - Inside the App –
From the Gallery
Send: Navigate(scrTest, ScreenTransition.Fade,{fromGalleryID: Gallery_1.Selected.ID})
Use It: Form property Item -> First(Filter(‘DataSource’, ID = fromGalleryID)) or LookUp(DataSource, ID = fromGalleryID)(Send: Navigate(scrTest, ScreenTransition.Fade,{locRecord: Gallery_1.Selected})
Receive: Form property Item -> locRecord ) - Outside the App
Send: https://apps.high.powerapps../play/4964396……………. &fromDeepLinkID=79&screen=test
On App start
If(Param(“screen“) = “test”,Navigate(scrTest));
If(Param(“screen“) = “test2”,Navigate(scrTest2));Use It: on Item:
Item -> LookUp(DataSource, ID = fromDeepLinkID) - When you don’t know where the id is coming from
Navigate(scrTest, ScreenTransition.Fade,{fromGalleryID: Gallery_1.Selected.ID})
or
https://apps.high.powerapps../play/4964396……………. &fromDeepLinkID=79&screen=testOn App start
If(Param(“screen“) = “test”,Navigate(scrTest));
If(Param(“screen“) = “test2”,Navigate(scrTest2));OnVisible of the scrTest
[code]If(
!IsBlank(Param("fromDeepLinkID")),
UpdateContext(
{
locRecord: LookUp(
DataSource,
ID = Value(Param("fromDeepLinkID"))
)
}
)
);If(
fromGalleryID > 0,UpdateContext(
{
locRecord: LookUp(
DataSource,
ID = fromGalleryID
)
}
)
);[/code]