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 item from colle...
Power Apps
Answered

Remove item from collection

(1) ShareShare
ReportReport
Posted on by 726

I'm using a collection to create a dropdown list 

 

I have oncheck 

 

Collect(
 EquipmentLis, /*create a collection to save the access equipment dropdown list*/
 ("Aframe"))

I thought i could do 

Remove(
 EquipmentLis, /*create a collection to save the access equipment dropdown list*/
 ("Aframe"))

but this does not work. 

 

I am not using a gallery and i dont want to clear all items from the list just the one thats been unticked.  

Categories:
I have the same question (0)
  • VishalJhaveri Profile Picture
    1,169 Moderator on at

    This is a Prompt Response.

     

    // Button's OnSelect property
    Remove(colItems, Gallery1.Selected); Refresh(Gallery1)

  • amyharkus86 Profile Picture
    726 on at

    @VishalJhaveri i'm not using a Gallery1.

  • VishalJhaveri Profile Picture
    1,169 Moderator on at

    // Removing an item from a collection based on a condition
    Remove(MyCollection, LookUp(MyCollection, ID = 123))

  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi @amyharkus86 

     

    When you collect the value to the collection, it is collected into a record which must have a field defined per value, as you specified no field, it defaulted to Value:

    image.png

     

    You can use remove in this way to achieve when you wanted:

    Remove(
     EquipmentLis,
     {Value: "Aframe"}
    )

     

    Cheers,

    Sancho

  • amyharkus86 Profile Picture
    726 on at

    @iAm_ManCat Thank you, that's worked just as i needed. 

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 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard