I'm trying to find for the latest data for the patch function to update in sharepoint but i can't seem to get it to work. It just updates the first data with the right person(s) full name. Does anyone know how do i solve this issue?
The following is the code that I'm currently using:
Set(currentItem,Patch(eLeaveApp, LookUp(eLeaveApp, 'Employee Name' = User().FullName ),{'SV Status': "Cancelled"},{'HOD Status':"Cancelled"},{'Admin Status':"Cancelled"}))