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 / Edit a Record in a col...
Power Apps
Answered

Edit a Record in a colletion

(0) ShareShare
ReportReport
Posted on by 173

Powerapps Community

 

I am struggling with something that to seems pretty easy to do, for some reason i am not finding what I need to make this happen.

 

I am collecting records from a form into a collection, i then have a gallery to review the data in those records, on the card in the gallery i have an icon to edit that record which navigates them to an edit form, the form has the item set to the galleryname.selected. All this works to this point, however this is where I am stumped, what action do i need to use on a button to basically send it back to the collection with the edits that are made to the record .  Do I run a collect or patch? i don't think submit form is what I want because it will submit it to the datasource, i want to review it again in the gallery before doing that, along with any other records.

 

Looking for hlep, i appreciate it.

Categories:
I have the same question (0)
  • Paul_C Profile Picture
    Microsoft Employee on at

    It sounds like Update() or UpdateIf() may be what you're looking for.

    Take a look at this: https://powerapps.microsoft.com/en-us/tutorials/function-update-updateif/

     

    See how that goes and let us know if you get stuck on anything!

  • Verified answer
    hpkeong Profile Picture
    2,944 on at

    Hi

     

    Collection and Patch basically having the same formual, except Collection for temporary storage whereas Patch is permanently saved into a DS.

     

    Since you can edit the gallery.selected items, then you can then UpdateIf the selected records

     

    @Paul_C has hinted that https://powerapps.microsoft.com/en-us/tutorials/function-update-updateif/ is the right place for you.

    Update and UpdateIF has different actions. Please read careully so that you can use the right formula.

     

    I share a screenshot using UpDateIF , and compare to the selected Name = Gallery.Selected.Name to request which to be repalced.

     

    Screenshot (388).png

     

    Hope this helps.

    Have a nice day.

  • Eric McKinney Profile Picture
    173 on at

    @hpkeong @Paul_C

     

    Paul C, updateif was what i needed, combined with hpkeong giving me that screenshot on the updateif based on name. What I had to do in addition to what you told me, was add a record id field that i could reference since the collection did not have one by default.  I thank you very much, this one is solved!

  • PytByt Profile Picture
    943 on at

    Hi @hpkeong 

     

    I have the similiar problem,

    Can i have take a look the formula that you're using for edit and update the collection item record please?

     

    thanks,

    pytbyt

     

  • WebWmn53 Profile Picture
    on at

    I would also like to see the formula with the added ID.

    thanks in advance

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 644

#3
11manish Profile Picture

11manish 626

Last 30 days Overall leaderboard