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 / Patching a collection ...
Power Apps
Answered

Patching a collection with LastSubmit Blank value not working

(0) ShareShare
ReportReport
Posted on by 312

I am displaying a collection (colAssessments) in a gallery and whenever a form is submitted, I am patching the collection to keep the gallery up to date. I have the following in the form.OnSuccess:

 

Patch(colAssessments, LookUp(colAssessments, AssessmentID = frmAssessment.LastSubmit.AssessmentID), frmAssessment.LastSubmit);

 

If an existing record is edited in the form and a textbox is emptied with text in it, the database is updated but the collection is not. When I look what the LastSubmit includes, it doesn't include the Blank value at all.

 

I have formula-level error management turned on.

 

How can I patch a blank value with the LastSubmit?

Categories:
I have the same question (0)
  • Verified answer
    Akser Profile Picture
    1,546 Moderator on at

    Hi @ramzez,

     

    Is there a specific reason why you don't use Update / UpdateIf?

     

  • ramzez Profile Picture
    312 on at

    No other reason than I've never had the need to use them. 

     

    I changed Patch to Update and it works, thank you!

    Update(colAssessments, LookUp(colAssessments, AssessmentID = frmAssessment.LastSubmit.AssessmentID), frmAssessment.LastSubmit);

     

    LastSubmit still doesn't contain the Blank value but Update updates with the Blank value and Patch doesn't. 

    Why does Update work in this case but Patch doesn't?

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard