web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : FPDUT2lLeYcB/vN011AiqV
Power Automate - Building Flows
Answered

Comparing 2 SharePoint files in different libraries

Like (0) ShareShare
ReportReport
Posted on 6 Apr 2021 07:40:50 by 329

Hi Guys,

 

I have to SharePoint files in different libraries on the same SharePoint site. File A is updated by MS Forms.

Then a flow starts and updates file B with the content of file A. I want to double check if the file was correctly updated afterwards.

 

I added a condition that checks if content of A is equal to content of B, but the outcome is always false. 

 

Is there a way to check the content of both files in a condition?

 

Regards,

  • PVosEska Profile Picture
    329 on 07 Apr 2021 at 06:35:50
    Re: Comparing 2 SharePoint files in different libraries

    Hi @v-litu-msft ,

     

    Thank you for your response, I did not expect that limit.

     

    The flow always ran succesfully, but I saw that file B was not updated correctly. It led me to think it takes some time before file A gets updated by MS Forms, Hence i wanted to doublecheck if the file content is equal.

    omparing the content of file A to itself in a condition did work correctly though.

     

    I will try and get data from the file (Max ID or something) to see if i can get that to work.

     

    Thanks and regards,

  • Verified answer
    v-litu-msft Profile Picture
    on 07 Apr 2021 at 02:16:33
    Re: Comparing 2 SharePoint files in different libraries

    Hi @PVosEska,

     

    Because the content of a file is often made up of thousands of characters, while the limit of expression is 8192 characters, it is not appropriate to use Condition to compare the contents of two files.

    Limits and configuration - Power Automate | Microsoft Docs
    In fact, as long as update file content action runs successfully, there is no need to check, or you can check whether its modified time is less than one minute.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2