Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Building a flow to compare the size of two files

(0) ShareShare
ReportReport
Posted on by 2
I'm trying to build a flow that will compare the file size of a local file, and one stored on an FTP server, and if they sizes don't match it will re-upload the file.
 
I can clearly see the .Size property on both the local and remote file in the stored variable, but when trying to create an "if" action, it says the .Size property doesn't exist.
 
Am I missing something, or does this just not work this way?
  • Verified answer
    Expiscornovus Profile Picture
    31,844 Most Valuable Professional on at
    Building a flow to compare the size of two files
    How are you retrieving the file(s)? Is that by any change with a Get files in folder type of action?
     
    If that is the case you might want to use an index function to get the right row of your file collection (assuming you have enable Power fx on your desktop flow).
     
    Below is an example which uses two local files as an example.
     
    Each file is stored in a variable, for example FileOne
    =Index(Files,1)
    In the Expression you should be able to refer to the property by using Variable.Size
     
    =FileOne.Size = FileTwo.Size
     
     
     
    The whole flow setup looks like the below. 
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492