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 / Building a flow to com...
Power Automate
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?
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,870 Most Valuable Professional on at
    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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 820

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard