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 / Delete sharepoint agen...
Power Automate
Unanswered

Delete sharepoint agenda item after date expired

(0) ShareShare
ReportReport
Posted on by

Hey all,

 

Can someone help me build a flow that deletes a sharepoint agenda item after the date expired?

 

Thanks in advance,

 

Zenna

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

     

    Is this a list then use Get List Items and set the filter query against the column name? What's your date expiry compared against? 

    Once the list records are there then iterate the results and use the id to delete the item using Delete item action step.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on at

    Hi @abm

     

    It is a SharePoint calendar, but it is a list yes. Just want to remove the date that has been expired 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    Thanks for your quick reply. See below example to filter DueDate > todays date.

     

    image.png

     

    Next add a foreach loop then use Delete Item action step, map the id from the above filtered collection.

     

    Thanks

  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at

    Hello @Anonymous 

    I solved a similar issue with expenses in the following way:

    2020-03-12 10_27_27-Window.png

    Using a Filter Query you can specify which items you want to get (those that ExpenseDate is less than today (utcNow)). After that, we delete each item.

    Hope it helps!

    Ferran

  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @Anonymous 

    Based on your scenario, the flow has to be scheduled daily i assume. Follow the below steps

    1. Create a flow of 'Scheduled-from blank'. Give it a name and choose the schedule

    2. Add 'Get Items' action and select the appropriate properties. In the advanced option, for 'Filter Query' use the value EndDate lt 'utcNow()'. I have used the default 'EndDate' field for checking the expiry.

    Get Items For Deletion.png3. Add an action named 'Apply to each'. Give the value as body('Get_Items')?['value']

    4. Inside the 'Apply to each' action, add 'Delete Item' action and select the appropriate properties. For the 'Id' property give the value as items('Apply_to_each')?['ID']

    Del Item Each.png

     Thats it, all the agenda or events whose enddate is already expired will be deleted.

     

    Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue

    -Sudharsan K...

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @sudharsan1985 @fchopo @abm 

     

    Thank you for those quick reply's, really helpfull. Thank you!

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