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 / 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard