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 / PowerAutomateでファイルサイズを...
Power Automate
Answered

PowerAutomateでファイルサイズを取得するやり方

(0) ShareShare
ReportReport
Posted on by 49

メールの添付ファイルサイズを取得したいです。

どのようなアクションでできるか教えてほしいです。

Categories:
I have the same question (0)
  • Verified answer
    lbendlin Profile Picture
    8,701 Super User 2026 Season 1 on at
  • Ellis Karim Profile Picture
    12,051 Super User 2026 Season 1 on at

    Question: "I want to retrieve the size of the attachment file in an email. Can you please tell me what action I can take to do so?"

     

    Google 翻訳を使用して申し訳ありません。

     

    Snag_ef58c4.png

    Snag_efafbd.png

     

    There could be one or more file attachments in the email.

    電子メールには 1 つ以上のファイルが添付されている可能性があります

     

    The Attachments property is an array.

    Attachments プロパティは配列です

    Snag_f34c3d.png

    The filename and file size (in bytes) is stored in an array called varAttachmentInfo

    ファイル名とファイル サイズ (バイト単位) は、varAttachmentInfo という配列に格納されます。

     

    Snag_f3c507.png

     

    Here is an example of the runtime output

    ランタイム出力の例を次に示します

    Snag_f59795.png

     

     

    [
     {
     "Filename": "SharePoint_lookbook_2019 (1).pdf",
     "Filesize": 8010181
     },
     {
     "Filename": "2022-08-29_16-01-45.png",
     "Filesize": 52973
     }
    ]

     

    You can reference the properties using the following expressions:

    次の式を使用して、配列内のファイル名とファイルサイズにアクセスできます

     

    variables('varAttachmentInfo')?[0]?['Filename'] = 
    SharePoint_lookbook_2019 (1).pdf
    
    variables('varAttachmentInfo')?[0]?['Filesize'] = 
    8010181
    
    variables('varAttachmentInfo')?[1]?['Filename'] = 
    2022-08-29_16-01-45.png
    
    variables('varAttachmentInfo')?[1]?['Filesize'] = 
    52973

     

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as ☑️ Solved.
    If you like my response, please give it a Thumbs Up.
    My Blog Site 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard