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

Notifications

Announcements

Community site session details

Community site session details

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

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,270 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,270 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard