Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Get most recent list which name contains a string

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I'm currently building a scheduled flow that gets information from a Sharepoint List and copies it to a Sharepoint Library as metadata to relevant items. Despite this being easy enough, the difficult is on how to select and call the correct list. From a seperate implemented process, done by someone else, an Excel macro was set up that every time it runs it creates a new SP list and dumps data from an Excel table in that newly created list. The new list name has a predetermined name (i.e. "doc meta - dd/mm/yyyy - X"), with the X being an incremental count. Because each list contains a full set of information, I need my flow to find the most recently created list that contains a certain string on its name, and then get the contents of that particular list. Would anyone be able to advise a way of doing this?

 

TIA

  • Verified answer
    Ivo_G Profile Picture
    11 on at
    Re: Get most recent list which name contains a string

    Think I cracked this nut 🙂 Fully aware the last ",1" at the filter array 2 action needs to change for a dynamic input to allow incremental count above 9, buit this appears to work.

     

    Ivo_G_0-1648043648819.png

     

  • Ivo_G Profile Picture
    11 on at
    Re: Get most recent list which name contains a string

    I should add that I know I have to use the Get lists action and I'm able to get all lists on the SP site. My struggle is on how to manipulate this result and filter the resulting data from the Get lists in order to always have it truncated to just the most recent one. Should also add that as part of the flow I'm building, every list containing "Doc meta" on its name will be deleted at the end of the flow, so it won't happen to have lists with different dates sharing the same incremental count.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1