cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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
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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,085)