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 Apps / Clearing a collection ...
Power Apps
Answered

Clearing a collection daily

(0) ShareShare
ReportReport
Posted on by 27

Hi, I currently have a collection that saves orders. I have a PowerAutomate system that will email these orders daily. I need to find a way to clear the collection every daily as to not send previous emails. Is there a way to set a timer to clear the collection daily?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ZhangAndy209 

    RemoveIf(collection, OrderDate <> Today) on a button OnSelect or the OnVisible of the screen.

    Change OrderDate to whatever your column name is for the order date.

  • ZhangAndy209 Profile Picture
    27 on at

    This doesn't work, it seems to be deleting all my orders now. 

  • Verified answer
    ZhangAndy209 Profile Picture
    27 on at

    I changed it to RemoveIf(collection, OrderDate <> Today()-1) to delete all the orders from yesterday rather than the day of and it works.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard