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 list, LookUp(SP list, ID = ThisRecord.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 AppsBuy me a coffee
Was this reply helpful?YesNo
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.