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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,222)