web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard