cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to delete a sharepoint record/row from PowerAps

I would like to create a button that, when pressed, it would remove a record that is highlighted within a datatable. The datatable contains data from a sharepoint list.

1 ACCEPTED SOLUTION

Accepted Solutions
bean
Continued Contributor
Continued Contributor

RemoveIf(datasource, primaryId = gallery.selected.primaryId)

 

Something like that should work.

 

Also add ;Refresh(datasource) after that to force your gallery to update if it doesnt automatically.

 

Sean

View solution in original post

3 REPLIES 3
bean
Continued Contributor
Continued Contributor

RemoveIf(datasource, primaryId = gallery.selected.primaryId)

 

Something like that should work.

 

Also add ;Refresh(datasource) after that to force your gallery to update if it doesnt automatically.

 

Sean

View solution in original post

bean
Continued Contributor
Continued Contributor
Stevevater
Frequent Visitor

@bean

 

Anyone know how to delete the record when there are more than the 500 limit.

 

Remove is not delegateable and therfore does not find a record outside the first 500 rows.(we have 8000)

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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,847)