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 / Power Automate Flow - ...
Power Automate
Answered

Power Automate Flow - Read multiple IDs from a pdf file name

(3) ShareShare
ReportReport
Posted on by 12

I built a flow that reads the entire PDF name and checks if it contains a 5-digit ID. Now, I need to expand this functionality to find multiple IDs within the same PDF name. For example, in a PDF file named "14325 12345 78956 important document 2024." I want the flow to extract all 3 IDs.

Once the IDs are extracted, I need to use them in subsequent steps to filter a list.

Categories:
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    Try this approach if you are trying to use cloud flow

    1. Assume the file name of pdf is stored in compose action for further processing (in real sceanrio, you can store the dynamic content which represent the file name- currently for demo purpose- i have hardcoded it in compose action as shown below)



    2. Use filter array which helps to capture 5 digit IDs from file name present in compose action as shown below


    Expression - 
    split(first(split(outputs('Compose'),'.')),decodeUriComponent('%20'))

    Condition used


    Expression used- 
    and(isInt(trim(item())),equals(length(trim(item())),5))

    Now see the output which would be in array format as shown below


    Hope this helps - This array of values you can use in next action(s)

     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     

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 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard