web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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
I have the same question (0)
  • Suggested answer
    abc 123 Profile Picture
    784 Moderator on at
    Building a list of file names
    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
    Building a list of file names
    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
    52,864 Super User 2025 Season 2 on at
    Building a list of file names
    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

Coming soon: forum hierarchy changes

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard