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 / When a new mail arrive...
Power Automate
Answered

When a new mail arrives trigger does not include attachments

(0) ShareShare
ReportReport
Posted on by 53

Sometimes, output may not contain attachments.
But, hasAttachments is true.

"body": {
"id": "XXXXX",
"receivedDateTime": "2024-02-15T08:12:46+00:00",
"hasAttachments": true,
"internetMessageId": "<XXXXX>",
"subject": "XXXXX",
"bodyPreview": "XXXXX",
"importance": "normal",
"conversationId": "XXXXX",
"isRead": false,
"isHtml": true,
"body": "XXXXX",
"from": "",
"toRecipients": "",
"ccRecipients": "",
"attachments": []
}

 


Of course, the Include attachments parameter is set to true.

 

"inputs": {
"parameters": {
"toOrCc": "",
"includeAttachments": true,
"importance": "Any",
"fetchOnlyWithAttachment": true,
"folderPath": "Inbox"
},

 

 

I think it's probably due to the email client,

but is there anything you can do about it?

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @kotato196 

     

    This might be due to inline attachment or signature image in the email.

     

    But we could add an expression as trigger condition to restrict the execution of flow if attachments parameter is empty.

     

    Here are the steps to add a trigger condition:

    1. Click (...) on the right side of "When a new email arrives (V3)" trigger and select "Settings" from sub menu:

    ManishSolanki_0-1709038648491.png

     

    2. Next, scroll down and enter the expression in the trigger condition:

    ManishSolanki_1-1709038787398.png

    @not(empty(triggerOutputs()?['body/attachments']))

    Click "Done" to save the changes & retest the flow.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • kotato196 Profile Picture
    53 on at

    @ManishSolanki 
    Thanks for your reply.

    >This might be due to inline attachment

    I think so too.

    But, I need to get inline attachments as well.
    So is there any way?

     

  • Verified answer
    kotato196 Profile Picture
    53 on at

    It wasn't inline attachment,

    it was an issue caused by ATP.

     

    If trigger fires before ATP has finished checking attachments,

    attachments array will be empty.

     

    Office 365 Outlook - Connectors | Microsoft Learn
    Trigger may run twice on emails with attachments with Dynamic Delivery

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard