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 / 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

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