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

Notifications

Announcements

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,195 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard