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 / Using collection to up...
Power Apps
Answered

Using collection to update sharepoint column value

(0) ShareShare
ReportReport
Posted on by 137

Hi all,

I have a PowerApp for ordering items from our storage. It's based on a Sharepoint list (yes, I know lists are limited, but so is my PowerApp knowledge 😄

Anyways, I have everything working, but there is one last operation I need to incorporate:

I have a gallery view of all of the items (rows) that are “on order”. I also have a “checkbox”, so that the user can check off the items that are sent.

The items that are “checked off” are added to a collection.

Now, in my SharePoint list I have a “Yes/No” column which is “No” on default.

I am trying to get PowerApp to patch the selected items (forementioned collection) so that the “Yes/No” value is changed to “Yes” upon pushing a button.

I don’t understand how I can get PowerApp to use my collection of items to change the value of the selected items to “yes”

Categories:
I have the same question (0)
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    There are a couple of things you need to do here:

    1. Make sure when you add "checked off" records to your collection, you have also included enough other info that you can successfully LookUp that same record on your SP list afterwards. An ID value would be perfect
    2. Once you can identify your record, you can use a Patch() statement to update the record in the SP list. The basic form of the Patch() will look something like:
    ForAll(myCollection As aCol,
     Patch(mySPList,
     LookUp(mySPList, ID = aCol.ID), // This identifies the record to be updated
     {
     myColumn: // Put the column's new value here
     }
     )
    )

     

    Hope that helps,

    Bryan

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