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 / Help Parse Text Action...
Power Automate
Answered

Help Parse Text Action with file name?

(0) ShareShare
ReportReport
Posted on by 30

Hi I need to process all files in a folder.  So I used the Get files action and I can see the files.  And I found the "part" filename...

Now I want to take that file name and parse the text into three variables.  This is an example of a file name 03-18-2021 Erb 15123.pdf.  I need to parse three variables - Date which would = 03-18-2021 Last Name = Erb and Employee ID = 15123.  Employee ID is always 5 char

derb_0-1616113055369.png

What do I put in the fields of the action in order for it to work?  Thank you I have no idea what a regular expression is!  I will be sooo greatful.

I have the same question (0)
  • Verified answer
    miketran13 Profile Picture
    720 on at

    Hello,

    I assumed that you can have space in the file name which separates the Date, Last name, Employee ID then you can use this solution. It is just using Split text with Space as delimiter then you can get a text list and there will be three elements in the text list for Date, Last name, Employee ID.

     

    If your file name have no format or structure then this should not work and we need to find another way.

     

    split.png

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • derb Profile Picture
    30 on at

    Thanks Mike!  so what is the syntax for Set Variable ?  

    derb_0-1616128932285.png

    I've tried the brackets inside and outside of the varable... I am missing something thank you so much for speedy response!

  • derb Profile Picture
    30 on at

    Figured it out! Thank you again for getting me on the right track 

    derb_0-1616129844074.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 273 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 149 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard