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 / Scheduled Deletion of ...
Power Automate
Unanswered

Scheduled Deletion of old List Items in SPO

(0) ShareShare
ReportReport
Posted on by 42

Hi Team,

 

Hope all's well. I've tried to create a simple flow to go through a list and remove specific items, just to keep the list nice and tidy. I've ran into a little (probably easy) problem though, and I'm a bit confused on the solution.

 

Context: I have a list of items with a start and end date, users put more items in via an app but the list is still very visible. Items need to be deleted when their end date expires to keep the list neat. Naturally I'd rather not have users going into the list and doing this, just to save time. 

 

The flow I've created involves a reoccurrence of each day, so it'll check for items that have expired in the morning before the working day starts. It's targeted at the right list, I know I need a filter query but I don't have much experience with them. I had a look through a few blogs and posts and ended up with the below (End le utcNow()😞 

 

 

I'm under the impression that this formula should bring back anything less than, or equal to 'Now' as in the time it runs - is that right? I had a check on my list this morning but it still has all the old entries from yesterday and earlier.

 

RhysD_1-1621933877958.png

 

Any ideas? 

 

Thanks!

Rhys. 

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @RhysD ,

    you should put single quotes around the utcNow() expression, otherwise the flow will fail (and do nothing).

    image.png

  • RhysD Profile Picture
    42 on at

    Perfect! Thanks Tom, I just reran it and it looks like it worked.

     

    I knew it'd be something simple haha.

     

    Have a great day! 

    Rhys. 

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard