i want to patch collection of records of login user to sharepoint list. again next time the user should see his records and edit them in the grid table created in gallery.
i created collection in App Start & add collect function in Gallery Record to collect the changes.
how to create patch function for this . if i use below patch it is created repeated duplicate records.
OnStart:
ClearCollect(Colpat,ShowColumns(Table(Defaults('ABC')),"User","Manager","Title","Status","CompletedDate","ID"));
Clear(Colpat)
Collect button in gallery:
Collect(Colpat,{Title:ThisItem.Title,Status:Dropdown.SelectedText.Value,User:ThisItem.'Created By',Manager:ThisItem.manager,CompletedDate:DatePicker1.SelectedDate})
Save button outside gallery:
Patch(
'ABC',
Colpat)