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 / Update Multiple sharep...
Power Apps
Answered

Update Multiple sharepoint records from a button in a powerapp

(0) ShareShare
ReportReport
Posted on by 209

Hello,

I have a gallery in my app which displays a list of items that have been placed on order by our technical department.  The gallery shows all items on order by using a filter which is :
'Filter(WSOrders,OrderStatus="ItemAdd")'

It lists multiple items, which is how I want it to work.  I would like to add 1 button outside of the gallery which will change the 'OrderStatus' of all items in the gallery from "ItemAdd" to "Complete".

Is this possible and if so how do I do this?
Please provide me with as much info as possible as I am not a Powerapp guru and prone to making simple mistakes.

 

Thanks in advance

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Station1901 

    To do this you'll need to loop over all of the gallery items using FORALL and change the OrderStatus of each record using PATCH.

     

    ForAll(
     AddColumns(Gallery1.AllItems,"NewID",ID),
    Patch(WSOrders,LookUp(WSOrders,ID=NewID),{OrderStatus:"Complete"})
    )

     

    Please note: if you have a very large list of gallery items this will take awhile!

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • Station1901 Profile Picture
    209 on at

    @PowerExplorer  Thankyou, this works perfectly.  

  • Sanjive Profile Picture
    2 on at

    Hey there, What is "NewID" here?

    Actually I have a gallery in which all items are listed except one all are disabled only one is editable(Status). I want to update status of multiple items on one button. 

    Button: On Select :-

    Sanjive_0-1662720931816.png

    MR_x0023_ is field name of ID on sharepoint list and App_id is name which is shown on tables(internal MR_x0023_ ).

    TextInput4 is textInput for App_id in gallery.

    Pls guide ASAP.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard