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 / Problem with Remove() ...
Power Apps
Answered

Problem with Remove() function

(0) ShareShare
ReportReport
Posted on by 20

Hey,

 

I am using a button to delete one item from my sharepoint list.

My first approach was to use it this way:

On Select -> Remove(Label_section;LabelSection_gallery.Selected)

 

This worked ok but I wanted to show a popUp for the user confirm he wants to delete the record and not just delete it immediately.

With this in mind, I created a popUp that only shows with a boolean var = true.

 

In the popUp, the user can confirm or cancel:

 

  • If he cancels, the var is set to false -> Set(varDeleteLabel;false) -> THIS WORKS
  • If he confirms, the record is deleted and i wanted to also set the var to false so the popUp disapears
    • -> Remove(Label_section;LabelSection_gallery.Selected) & Set(varDeleteLabel;false)

But, when I add this last part (set function) it shows an error:

jmurteira_0-1644505927015.png

PS: I have already tried to change the "&" to a ";" , "And" or ","

 

I can't understand what is happening, can someone help me with that? Is that a bug?

 

Best regards,

João Murteira

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    The button will do its action by the order you put the code. So if it's removed with success the variable will be set to false.

     

    Remove(Label_section;LabelSection_gallery.Selected);;
    Set(varDeleteLabel;false)

     

     

     

  • jmurteira Profile Picture
    20 on at

    Thanks a lot!!! The correct division of the functions was ";;"

     

    It is already working

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard