Announcements
I am using this formula for deletion and update of collection ClearCollect(colWithNumber, RemoveIf(colWithNumber, ID <= 24)); but it is removing all the item from the collection.
Hi @Moira0509 ,
You can use the following:
RemoveIf(colWithNumber, ID <= 24)
No need to write ClearCollect() function over here.
Thanks
But when I am using this
It is not updating the collection.
Hi, @Moira0509 Ideally it should work, let's say if you have gallery where you want display the collection data. So, in this case we can write this code on OnSelect() of button and directly pass the collection data to the gallery. So, it will remove the items and will automatically update the collection.Thanks
So this code i should use in onselect of gallery not in button ?
I am using button outside the gallery and then formulating this..
Hi @Moira0509 ,I have attached a demo of updating the collection. Please have a look in this.
Yeah I am using this RemoveIf(colWithNumber, ID <= 24); but the thing is that the items that are starting from id 25 are not getting updated to id 1.
If the items are deleted then other item are not getting updated according to the IDs as I am dynamically adding a IDs in my collection.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 220 Super User 2026 Season 2
WarrenBelz 194 Most Valuable Professional
Mohsin Ali 150