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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove() does not work...
Power Apps
Answered

Remove() does not work when combined with additional commands.

(1) ShareShare
ReportReport
Posted on by 6
Hey!
 
I want to include a button on my screen that removes a selected item from my gallery. Now the Remove function works fine if used alone as a command. But as soon as I add an additonal command (e.g. Navigate) it returns an Argument Type error for the Remove function.
 
Remove('SPdatasource'; varSelection) & Navigate('Success') & Set(varGalDefault; Blank()) & Set(varGalDefault; {})
Remove command                       & Navigation to Success screen                      & Set the gallery default value to {} so it goes back to no selected item after deleting an account.
 
OnSelect of gallery:
Set(varSelection; ThisItem)
 
Thank you for your help. Happy to provide more context if needed.
 
Mathias
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    Try with these separators
    Remove(
       'SPdatasource'; 
       varSelection
    );;
    Navigate('Success');; 
    Set(
       varGalDefault; 
       Blank()
    );;
    Set(
       varGalDefault; 
       {}
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

     
  • MT-08080833-0 Profile Picture
    6 on at
    Thank you, works fine! I still need to figure out where/when to use which separators. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard