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 / Powerfx In Command Bar...
Power Apps
Unanswered

Powerfx In Command Bar- How to move back to the previous screen after deleting the record ?

(0) ShareShare
ReportReport
Posted on by 305

 

 

If(Confirm("Are you sure you want to delete ? "),Remove(ItemSpecs,Self.Selected.Item));
Back()

 

 

 

I am opening a record in a subgrid, this leads to the main form of the item from that subgrid.

Then I am clicking on a custom button to delete the record , and it is deleting correctly but the record still stays visible instead of becoming blank or moving back to the previous screen.

Back() is causing and error as the function is recognised but not supoorted

 

What is the right way of going back to the main form after deleting a record from the subgrid's main form?

I have the same question (0)
  • Jonathan Manrique Profile Picture
    2,695 on at

    Hi @Rutu01 

     

    Hello, to return to the previous record you will have to have the GUID of the previous record captured in some way, which is why it is a bit complex, you could do some alternatives but none will give you a very clean solution.

    I suggest you use the navigate and go to the main view or the view you decide and that way you can go to a specific place

     

    To do this, use With so that everything happens in the same context and you can return to the main screen when you delete the record, another alternative is to go to the main form

     

    Navigate('table (View)'.'name view')

     

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard