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

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:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard