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

Flow - Filter sharepoint list based; older than 60 days

I have a sharepoint list.

I have a date column.

I want Flow to delete all posts in the sharepoint list if the date is older than 60 days from todays date.

 

How should i filter the flow "get sharepoint objects" so that i then can use the delete command?

My column is called: DueDateXX

I wrote this: DueDateXX gt addDays(utcnow('yyyy-MM-ddTHH:mm:ssZ'),-60)

 

But i did not get it to work.

Anyone able to help?

 
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Flow - Filter sharepoint list based; older than 60 days

@Oskarkuus 

You need to add single quotes at each end of the expression - see my example above.  Please add the single quotes and try again.

DueDateXX le 'addDays(utcnow(),-60,'yyyy-MM-dd')'

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
4 REPLIES 4
Super User
Super User

Re: Flow - Filter sharepoint list based; older than 60 days

@Oskarkuus 

The following example should get you there.  Substitute the internal name of your column (DueDateXX) for Created in my expression.  Also note the single quotes around the expression.

DeleteItems.jpg

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Oskarkuus
Level: Powered On

Re: Flow - Filter sharepoint list based; older than 60 days

I still get an error on this

DueDateXX le addDays(utcnow(),-60,'yyyy-MM-dd')

 

My flow looks other whise exactly like yours on the picture.

 

 

Super User
Super User

Re: Flow - Filter sharepoint list based; older than 60 days

@Oskarkuus 

You need to add single quotes at each end of the expression - see my example above.  Please add the single quotes and try again.

DueDateXX le 'addDays(utcnow(),-60,'yyyy-MM-dd')'

 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
Oskarkuus
Level: Powered On

Re: Flow - Filter sharepoint list based; older than 60 days

Great, that was it. Works perfectly now.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 178 members 4,125 guests
Please welcome our newest community members: