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 / Compose 1 flow that ru...
Power Automate
Answered

Compose 1 flow that runs on multiple Sharepoint lists

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi there,

 

I would like to create a flow that runs through all Sharepoint lists on my Sharepoint subsite and deletes items that are older than X years. Does anyone know if you can create a flow that checks each list without having to add that list manually to the flow? There will be lists added to this site and they all need to be in the scope of the flow, with as little manual updating necessary as possible 🙂

 

Thanks in advance!

 

Merel

Categories:
I have the same question (0)
  • Brad_Groux Profile Picture
    4,556 on at

    Theoretically this should be something that you can accomplish, althought it isn't possible with the built-in SharePoint connectors. Currently, you must explicitly name the SharePoint list you want to update with the SharePoint Connectors, but if you'd like multiple list selection as a default functionality, you may submit a request here

    You could likely do this with custom functions and logical expressions in Flow, utilizing the SharePoint REST API, but as I stated, it would be quite complex. The SharePoint REST web service works great with Microsoft Flow, and allows you to do pretty much anything you want with SharePoint data, you just have to build it. 

    For more information about the REST service and Flow, please see the following links: 

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. THANKS!

  • Verified answer
    v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    It seems you want to get all the lists in your SharePoint subsite.

    Then checking each item whether they older than X years. 

    I suggest you use the 'Get lists' action of SP.

    Capture3.PNG

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Brad_Groux and @v-zhos-msft ,

     

    Thank you both very much for your suggestions! I have been playing around with @v-zhos-msft 's suggestion and I hope this will lead me to the final solution. The problem that I encouter is that I cannot seem to load the 'Created' column of the lists in order to be able to filter on items older than X years. See below for my flow. 

     

    Do you have any suggestions on how to deal with this? Thanks again in advance!

     

    Flow.PNG

     

     

  • Verified answer
    v-zhos-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    You should use the expression to get the 'Created' here:

    Capture.PNG

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

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 Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard