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 / Searching a Word document
Power Automate
Answered

Searching a Word document

(1) ShareShare
ReportReport
Posted on by 13
Hello,
 
I need to search a Word document for certain text.  In my flow I've saved the document to SharePoint but am getting conflicting information from Copilot on how to search for text.  I've only seen one post on this forum for the same information which contained no answers, and another post where the answers will not display correctly.
 
I already have a PDF document search that works ok, so if there's no way to search the Word doc, I could convert it to a PDF if someone can help with that instead.
Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
     
    So, you can easily convert the document to a PDF, using the Convert to PDF action within a Flow that your agent calls.
     
    It would also be how you could search your document using cognitive ai/ai actions to search for it, but that would be again calling a flow, that is either a CoPilot Flow, or a custom flow that you call from CoPilot.
     
    I do not know what your licensing is nor what your DLP policies or any weird configuration globally that would stop the above but OOB that's how you can do it.
     
    Here is an example of the conversion process
     
    If this helps to resolve your issue, if you do not mind Marking as such and maybe a like.
     
    Thanks
  • Gary Profile Picture
    13 on at
    Thank you Michael,
     
    I'd prefer to check the Word document itself, but if I can't figure that out then I'll try the PDF conversion and mark it as an answer👍
  • Verified answer
    takolota1 Profile Picture
    4,974 Moderator on at
    If you have access to Azure there is this template Azure Function App that can pull the text from a Word file & then search the output text, including with Regex.
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
    Hi @Gary
     
    In that case you want to use the this method.
     
     

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard