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 / Comparing content of 2...
Power Automate
Answered

Comparing content of 2 pdfs

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys,

 

I have two folders in sharepoint that contain numerous pdfs. I need a flow that could compare the pdfs in these two folders using their texts.

 

I need to be able to set a condition that states: if the number of times [text] exists in file 1 =/= the number of times [text] exists in file 2, place both pdfs into a new folder. I also would like to add this condition multiple times, as there are several [text]s that need to be compared in these files.

 

If [text] in doc 1 is = to [text] in doc 2, I need it to move on to the next document in the two folders.

 

[text] is basically just a few letters written together, like "LO."

 

Ive attached how my flow looks like so far.

 

Please let me know how to go about setting this condition?
Thank you!

image.png
image.png
Categories:
I have the same question (0)
  • Verified answer
    Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Hello @Anonymous

     

    This is how it should work:

     

    Matthy79_0-1696323375657.png

     

    I skipped the AI part but this is a good formula to get the text using only one compose:

     

    join(xpath(xml(json(concat('{ "root": { "results": ', outputs('Recognize_text_in_an_image_or_a_PDF_document')?['body/responsev2/predictionOutput/results'], ' } }'))), 'root/results/lines/text/text()'), ' ')

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard