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 / Get File Size as an el...
Power Automate
Answered

Get File Size as an element in Dynamic content

(1) ShareShare
ReportReport
Posted on by 42

Provide a mechanism for getting the file size of a file in a SharePoint library.

This should be an option in Dynamic Content, ideally.

 

There are numerous scenarios where checking the file size is important, including dealing with the limits on the Vision API (4MB maximum). Without it we are failing some Flows and also loading thevarious services with unsupportable actions.

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @simonjhudson,

     

    You could get the file size using Get file metadata action.

    Image reference:

    2.PNG

    Please take a try.

     

    Best Regards,

  • simonjhudson Profile Picture
    42 on at

    Comploetely missed that, so many thanks Barry. There are multiple accounts online of this not being possible, so I don't feel quite so embarrassed by not seeing it.

    It has now been successfully incorporated into my epic Flow.

  • IWantToKnow Profile Picture
    90 on at

    How can I accomplish this when the user selects a local file? an expression like this doesn't do the trick: length(triggerBody()?['file']?['contentBytes']) > 75000000

    Please advise, Thank you!

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard