web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow - Filter sharepoi...
Power Automate
Answered

Flow - Filter sharepoint list based; older than 60 days

(1) ShareShare
ReportReport
Posted on by 1,097

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?

 
Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @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

     

     

  • Oskarkuus Profile Picture
    1,097 on at

    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.

     

     

  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @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')'

     

     

     

  • Oskarkuus Profile Picture
    1,097 on at

    Great, that was it. Works perfectly now.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard