web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delete last modified S...
Power Apps
Unanswered

Delete last modified SharePoint list record and create new record through Power Apps

(0) ShareShare
ReportReport
Posted on by 1,121

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?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    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()

      

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard