Hi everyone,
I created an app for keeping track of different tasks (pretty simple). I wanted to implement the feature of sending reminders to the tasks assignee via mail/push notification with a link that directly opens the app and the task that is assigned to them.
I worked with the basic guideline ofc:
https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/how-to/deep-linking
Everything is working fine, navigation within the app is working fine but when it comes to opening the task from the deep link or push notification the form on the screen is getting stuck with "getting your data..." because the record variable couldn't be filled with the "UpdateContext" from the "OnVisible" of the screen.
This is my "OnVisible" command:
If(Not(IsBlank(varKeyResultID)),UpdateContext({varRecord:LookUp(OKR_KeyResult, OKR_KeyResultID = GUID(varKeyResultID))}
));
(Screenshot of entering the App with a deep link and getting send to the Edit Screen instead of the homescreen with a set variable from the param of the SendNotification)
I added a button on the screen to manually perform the "UpdateContext" when I accessed the app via DeepLink and only then the "getting your data..." of the form disappears and the record shows up.
The "UpdateContext" command is the same as above:
If(Not(IsBlank(varKeyResultID)),UpdateContext({varRecord:LookUp(OKR_KeyResult, OKR_KeyResultID = GUID(varKeyResultID))}
))
Anybody out there who encountered the same issue before?
I am mostly certain that the error has to do with the "UpdateContext" not working on the "OnVisible" property of a screen when coming from a deep link.
Helpers appreciated.
Best regards

Report
All responses (
Answers (