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 / Deleting collection ro...
Power Apps
Unanswered

Deleting collection row in gallery after popup validation

(0) ShareShare
ReportReport
Posted on by

Happy friday everyone!

I have trouble deleting a selected record in collection in a gallery browser after popup validation window.

I have carefully followed the guide from https://www.youtube.com/watch?v=SaDEVOgOlYY and https://www.youtube.com/watch?v=TjKmL0v6GlI, but neither seems to work.

It seems like the only way for me to delete a record in my collection in a gallery is through this syntax

 

 

Remove(collection, ThisItem)

 

 

I have tried this one, but it does not the delete the record...:

 

Remove(collection,Gallery.Selected)

 



However if I want to use a Popup validation window, i need to use "Remove(collection, gallery.selected) to delete the selected record. But this syntax does not delete the row for me.

 

 

Remove(Collection, gallery.Selected);UpdateContext({varShowPopup:false});Back()

 

 

 

image.png
Can anyone help me with deleting a record in a collection after a popup validation window?

 

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at
    @Anonymous
    The reason it’s not working is because when you click the garbage can icon the record underneath is not selected. Selecting in a gallery is the result of triggering the gallery’s OnSelect property. Here you are triggering OnSelect of the icon.

    We can try a different approach. Include this code in the OnSelect property of your garbage icon.

    Set(recordDeleteID,ThisItem);

    Then put this code in the pop up confirmation OK button OnSelect property.

    Remove(collection, recordDeleteID);

    —-
    Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
  • Community Power Platform Member Profile Picture
    on at

    @mdevaneyThank you! It works 🙂

    You are definitely the MVP (most valuable poster) here on this forum!

  • mdevaney Profile Picture
    29,989 Moderator on at
    @Anonymous
    Thank you for the kind words. Best of luck building your app.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard