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 / Get most recent list w...
Power Automate
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

Categories:
I have the same question (0)
  • Ivo_G Profile Picture
    11 on at

    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.

  • Verified answer
    Ivo_G Profile Picture
    11 on at

    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

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard