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 翻訳を使用して申し訳ありません。


There could be one or more file attachments in the email.
電子メールには 1 つ以上のファイルが添付されている可能性があります
The Attachments property is an array.
Attachments プロパティは配列です

The filename and file size (in bytes) is stored in an array called varAttachmentInfo
ファイル名とファイル サイズ (バイト単位) は、varAttachmentInfo という配列に格納されます。

Here is an example of the runtime output
ランタイム出力の例を次に示します

[
{
"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