cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dries
Level: Powered On

Remove items form list not working

Hi

 

I have a list with a date field (datum). I added a button to delete all records with a date older dan 60 days. I added this code to the button, but it is not working. Any suggestions?

 

RemoveIf(Maaltijden,(Datum<(Today()-60)))

 

thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Meneghino
Level 10

Re: Remove items form list not working

What is the data source?

If SQL Server or Azure SQL DB or SharePoint then > or < or >= or <= comparisions do not work are not delegated.

Reference here:

https://baizini-it.com/blog/index.php/2017/09/28/powerapps-and-azure-sql-database-current-issues/

View solution in original post

4 REPLIES 4
Highlighted
Meneghino
Level 10

Re: Remove items form list not working

What is the data source?

If SQL Server or Azure SQL DB or SharePoint then > or < or >= or <= comparisions do not work are not delegated.

Reference here:

https://baizini-it.com/blog/index.php/2017/09/28/powerapps-and-azure-sql-database-current-issues/

View solution in original post

Rebetcha
Level 10

Re: Remove items form list not working

< works on these datasources, but then the function is not delegable so will only work on the first 500 records. You could make a Flow to remove the records. The OnSelect action would then be to fire of the Flow. Reference to make a Flow and use it in a PowerApp here: https://docs.microsoft.com/en-us/powerapps/using-logic-flows.

Meneghino
Level 10

Re: Remove items form list not working

Got me @Rebetcha, you are correct.  I edited my earlier post.

dries
Level: Powered On

Re: Remove items form list not working

Thanks.

The data source is a sharepoint list.

One the screen, I only had a button. I added a gallery first, and now it works...

 

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,343)