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 / Building a list of fil...
Power Automate
Suggested Answer

Building a list of file names

(1) ShareShare
ReportReport
Posted on by 43
I need to build a list of file names by scanning through an existing folder of files. The folder of files contains file names like aaaa123_C0001_aaaaa.pdf and bbbbb_C0003_ccccc.pdf. I need to create a list that would look like C0001,C0003. Can Power Automate find the pattern that begins with "C" followed by 4 numerics and then write each of the occurrences to a new file. 
 
Thanks, Mark
Categories:
I have the same question (0)
  • Suggested answer
    abc 123 Profile Picture
    789 Moderator on at
    The IndexOf() function can find the "_C", then you can assume the next 4 chars.
    From there, Left(), Right(), Mid(), Substring(), etc functions can help with string manipulation.
  • ME-14102049-0 Profile Picture
    43 on at
    This seems about what I want to do but I'm working from files on a Windows server, Can this be modified to work in that environment?
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    Hi,
     
    So when you write, you should clarify 2 things always
     
    1) what platform. this question is clearly for Desktop (imho), but you do not explain or state that. There is a specific Community forum for PAD :-)
     
    2) share your flow and steps. Please write these as steps, not sentences and definitely not paragraphs.
     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard