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 / Change status for all ...
Power Apps
Suggested Answer

Change status for all the items with the same ID

(1) ShareShare
ReportReport
Posted on by 2
Hi,
 
I have a sharepoint list database with the list of items which all has their own ID. There can be more than one rows related to the same ID. I need to have a Power app, which will be used in the PowerBI report. There is a list of IDs and a buttons next to them which suppose to change a status to "Closed" for each item with the same ID like is the one next to this button. I am trying to use this command, however this change only the first item from the sharepoint list. Please advise where is the problem?
 
Patch(SP listLookUp(SP list, ID = ThisRecord.ID), {Status: "Closed"})
 
 
Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    153,127 Most Valuable Professional on at
    The detail missing is the name of the list containing the relevant ID numbers, Assuming it is a collection
    Patch(
       SP list,
       ForAll(
          YourCollection As _Data,
          {
             ID: _Data.ID,
             Status: "Closed"
          }
       )
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     

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 765 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 272

Last 30 days Overall leaderboard