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 / find exact word and re...
Power Automate
Unanswered

find exact word and return value as page number

(0) ShareShare
ReportReport
Posted on by 10

Hi im sorry but i cant speak english properly, please bare with me

my goal is to use dekstop flow to split pdf by text which (i already find a way with cloud flow but it has limitation file size so i cant use it), but i cant seem to figure it out, im working my way around the keyword as the delimiter, i have an idea which first i parse text and using Matches making it into foreach, so each matches text value will return as the first page number to be extracted.... but i cant figure it outt how to make it return as page number, heres the screenshot of my current flow:

 

image.png
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @theresia 

     

    One question, does your pdf have the page number in format  Page Number: 1 in bottom of your page ?

     

    If yes one logic to extract the text would be to remove the text before the occurance and then check for page number , which page number is coming first that would be taken as page number of the page where the word is present 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I would suggest splitting your PDF into separate PDF files per page and then looping through them, getting the text, parsing it and merging the files when you find your text.

     

    Alternatively, you could try extracting the text from each separate page (Extract text from PDF supports providing a page number to extract from). You could loop through the pages, extract the text, parse it, and if you find your keyword, then do the split using the page indexes.

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

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • theresia Profile Picture
    10 on at

    already dm'ed u, thanks for helping!

  • theresia Profile Picture
    10 on at

    i do exactly like agnius say but i got stuck on the if condition, i parse the text and move it to new variable and remove duplicate the new variable, and the list become 4 texvalues, i use it as my second operand in if condition but it doesnt work, i bet i have to do or if? but how to do that with list of text values as the second operand? i cant figure it out

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Can you please share some screenshots of your flow?

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

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard