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 / UpdateContext not upda...
Power Apps
Unanswered

UpdateContext not updating Variable (Record) when accessing an app via Notification with DeepLink

(0) ShareShare
ReportReport
Posted on by 43

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

 

Justcru_0-1682343191925.png

 

 

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))}
));

Justcru_1-1682343345148.png

(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))}
))

 

Justcru_2-1682343470370.png

 

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

 

Categories:
  • Justcru Profile Picture
    43 on at

    Note: Found another topic which basically had the same issue and there is actually a workaround which I am using now, too.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Variable-is-blank-from-deeplink/m-p/1923324/highlight/true#

    Nevertheless this seems to conflict with the microsoft documentation of how deep linking should work (i believe).

    Maybe there is a proper way of fixing this and having it work as intended.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard