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 / Use file size to decid...
Power Automate
Unanswered

Use file size to decide if file is created or not

(0) ShareShare
ReportReport
Posted on by 2

Hi, I have tried to use file size to decide if file should be created or not, the problem is that it seems that I have to create file before I can retrieve file size, and then its too late. Every second day, I receive an email with an attachment which I will copy from outlook to a sharepoint site if the size of the file is above 5 kB, if not the file should not be copied. The reason is that if the file is below 5 kB, the the file is "empty", and then I will use the file which is already in sharepoint, meaning I will not overwrite existing file.

 

Any tips is appreciated!

 

BR

Tom 

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi TomPed,

     

    I am afraid that currently Flow is not able to check the file size. There are similar requests at Flow Ideas Forum, please consider to vote and comment the ideas at here:
    https://powerusers.microsoft.com/t5/Flow-Ideas/Option-to-save-attachments-based-on-size-of-attachment/idi-p/4980

    https://powerusers.microsoft.com/t5/Flow-Ideas/SFTP-File-Size-Condition/idi-p/56873

     

    I will also help report it on my side.

     

    Best regards,
    Mabel Mao

     

  • TomPed Profile Picture
    2 on at

    Thanks for your help. I have already voted:)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard