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 / remove and navigate
Power Apps
Answered

remove and navigate

(0) ShareShare
ReportReport
Posted on by 19

Hi everybody, I need to delete a record from a gallery; I'm using the REMOVE function and it works, but I do not understand how to navigate to a new screen after the delete is successfull. Can anybody help?

 

Thank you.

Tommaso

Categories:
I have the same question (0)
  • nickduxfield Profile Picture
    497 on at

    Remove(Gallery1.Selected) ; Navigate(Screen,Screen Transition.None)

  • tommasogiorgi Profile Picture
    19 on at

    Hi nickduxfield, thank you for asnwering. I tried your code, but I receive the following error: invalid token

     

    This is the code:

     

    Remove(carnet_soci;First(Filter(collezione_carnet;PrimaryId=elenco_lezioni.Selected.PrimaryId))); Navigate(home,Screen Transition.None)

     

    Thank you.

    Tommaso

  • nickduxfield Profile Picture
    497 on at

    @tommasogiorgi Hey,

    Why do you have a complex filter in the Remove function? What are you trying to achieve?.

    All you need is: Remove(carnet_soci, Gallery.Selected); Navigate(home,Screen Transition.None)

    Example: Remove(Source, Gallery.Selected);Navigate(Home, TransitionType)

    If you have a different type of database or have an tenancy overseas in Europe your syntax may be different. I see you using ; (semicolon) in place of , (comma).

     

     

  • tommasogiorgi Profile Picture
    19 on at

    Hi @nickduxfield, I've modified the code as you suggested, but the mistake persist. The remove function is working fine, but if I add the navigate instruction, I get the "invalid token" error message. I'v tried both with comma and semicolon:

     

    Remove(carnet_soci;elenco_lezioni.Selected);Navigate(home;ScreenTransition.None) 

     

    Remove(carnet_soci;elenco_lezioni.Selected),Navigate(home;ScreenTransition.None)

     

    Any other suggestion?

    Thank you.

     

    Best

  • Verified answer
    tommasogiorgi Profile Picture
    19 on at

    Hi @nickduxfield, I've solved: the right code is with double semicolon.

     

    Remove(carnet_soci;elenco_lezioni.Selected);;Navigate(home;ScreenTransition.None)

     

    This is the appropiate link: https://powerapps.microsoft.com/en-us/tutorials/global-apps/

     

    Thank you!

    Best

  • nickduxfield Profile Picture
    497 on at
    Great work. There is some syntax difference between countries for some reason, where are you located?
  • tommasogiorgi Profile Picture
    19 on at

    in Italy.

    Ciao

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard