cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Finding Text in variable produced by "Extract text from PDF"

Hi All,

 

I have a daily report that i'd like emailed only if the report contains a specific keyword.  I see we can extract text from a PDF, which is how the report is generated.  What would be the most efficient way to search that variable for the existence of that keyword?  That way I can create a conditional statement that emails the report only if the keyword is present in the text from the PDF. 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
VJR
Super User
Super User

Hello @Ernie-Velazquez 

 

You can make use of Parse Text.

 

If the %Position% variable is greater than or equal to zero then the Text is FOUND.

If it is -1 then the Text is NOT FOUND

 

Remember that the position starts from 0.

 

And if your search text is a bit complex then you can use Regular Expressions too.

 

VJR_1-1647657399684.png

 

 

View solution in original post

2 REPLIES 2
VJR
Super User
Super User

Hello @Ernie-Velazquez 

 

You can make use of Parse Text.

 

If the %Position% variable is greater than or equal to zero then the Text is FOUND.

If it is -1 then the Text is NOT FOUND

 

Remember that the position starts from 0.

 

And if your search text is a bit complex then you can use Regular Expressions too.

 

VJR_1-1647657399684.png

 

 

Well that was easy, thanks so much!  Flow us working 🙂

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,911)