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 with pat...
Power Apps
Answered

updatecontext with patch returned record

(0) ShareShare
ReportReport
Posted on by 105

I have a context variable set to a record, this record gets patched to a table, i want to update this same variable with the record returned by the patch. If this patch errors out, will my variable be preserved or is it set to an error or empty value?

 

 

UpdateContext(
 {
 scr_selectedDocument: Patch(
 'Credential Licensure Agreements',
 scr_selectedDocument,
 {doc_status: "Rejected"}
 )
 }
);

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Hemzi-fcc 

    It will be blank.

    You can check errors with the Errors function against your datasource then.

     

    I hope this is helpful for you.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard