
Announcements
Hello Champions,
I have a gallery whose items are coming from a SharePoint Online list. When I open a gallery item in a form and modify and save it, I would like to delete the previously submitted record and add a new record to SharePoint list. This is because when I modify the existing record, I may want to add columns which are not part of existing record. The user may want to add dynamic columns on the form and I do not want SharePoint list to show the columns which are coming from previous submission of the same record. So I felt deleting the previously submitted record and adding a new record is good solution. I am not finding the way to do it in Power Apps. Can some one please throw some light on it and show me the path?
Hi @RameshMukka
You could set a global variable for the ID of the item in the gallery as the OnSelect property of a ">" icon in the gallery item to be edited
Set(remID,ThisItem.ID); Navigate(scrEdit,None)
In the OnSuccess property of the edit form on the target screen, you would have
Remove(spList, ID = remID); Refresh(spList); Back()