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 / Records not patching
Power Apps
Answered

Records not patching

(0) ShareShare
ReportReport
Posted on by 67

Hi All, I have a gallery showing a list of repairs sourced from SharePoint where the manager can select to approve or decline. Technicians have been reporting that they are getting several approval emails showing the same repairs approved multiple times from the manager. I’m using an HTML text to capture the selected list and email to the assigned technician on select button. I noticed that when the manager were approving them via an iPhone only 8 out of 20 records were patched, and the gallery will show the rest. And hence, the manager had to approve them until the list is empty. Any insights why?

Categories:
I have the same question (0)
  • leyburn19 Profile Picture
    2,157 on at

    Can you share the patch code.    You are collecting the list in HTML for emailing but what happens then?  Is it supposed to then close those records?

  • Prav Profile Picture
    67 on at

    @leyburn19 

     

    ForAll(
     RenameColumns(
     Filter(
     gal_Repairs.AllItems,
     chk_Approval.Value = true
     ),
     "ID",
     "ID1"
     ),
     Patch(
     Repairs,
     LookUp(
     Repairs,
     ID = ID1
     ),
     {
     Status: "Approved"
     }
     )
    )
  • Verified answer
    leyburn19 Profile Picture
    2,157 on at

    Ok,  I assume the patch is based on the checks being true.   I probably would tackle this a different way.  I would create a collection based on the checks.   On the on check I would do:  Collect(MyCollection,ThisItem)  On the uncheck I would do Remove(Mycollection, ThisItem)  Then on use the collection to make your HTML email ( I normally put that into a table)

     

    Then on you Submit button I would do 

     

    Forall(MyCollection,Patch(Rpairs,Lookup(Repairs,ID=ID),{Status:"Approved"})  - Not sure if you will need the rename column in this as well

     

    Then Clear the collection Clear(mycollection). If you want to keep the gallery view based on the same group you can refresh the Checkbox by using UpdateContext(vReset:true}); UpdateContext(vReset:false}) and put the vReset on the Reset to the checkbox

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 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard