cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ByzKzlky
Helper II
Helper II

Select a Record and Delete Record From List and SharePoint

Hello,

I'm new on Powerapps and I'm trying to build an app.

I have a list and this list directs me another page. 

In my scenario, I want to select records one or more than one at a time and then I want to delete with using trash icon. 

I tried with checkbox, but I couldn't do. 

My list is like below:

 

 

Ilist.PNG

1 REPLY 1
eka24
Super User III
Super User III

HI @ByzKzlky 

Insert a Checkbox into the Gallery:

  OnCheck:  Collect(ItemsForDelete,ThisItem)

  OnUnCheck : Remove(ItemsForDelete,LookUp(ItemsForDelete,ID =ThisItem.ID))

 

Then insert a Button outside the Gallery to delete collected records:

ForAll(ItemsForDelete,
Remove(Datasource, LookUp(Datasource,ID = ItemsForDelete[@ID])
))
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (47,008)