Hello. I have a SharePoint List and PowerApps app which is created from this list which consists of standard Browse, Detail and Edit Screens. I added Accept and Decline buttons to Detail Screen. I am thinking that a manager will browse list and select one of row in the list and go to detail screen. There will be accept and decline buttons in this detail screen. If the manager clicks accept button, "Status" column of relevant row will be "Accepted" I used this code at OnSelect section of button:
Patch(RequestEdit; First(RequestEdit); {Status: "Accepted"});;
But this code changes status of first row of my sharepoint list. I couldn't find a way to change it to selected row. How can I do this?