Pull emails from attachments LogicApp

Jarrod Callander 11 Reputation points
2021-03-26T01:02:09.683+00:00

Hi all,

Within LogicApp I am wanting to pull emails that are attached to emails however these attachments don't show (see raw output below). How can I pull .msg files?

{
"headers": {
"Pragma": "no-cache",
"Transfer-Encoding": "chunked",
"Retry-After": "3600",
"Vary": "Accept-Encoding",
"x-ms-request-id": "xxxxxx",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"Cache-Control": "no-store, no-cache",
"Location": "xxxxxx",
"Set-Cookie": "xxxxxxt",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"Date": "Fri, 26 Mar 2021 00:51:29 GMT",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1",
"Content-Length": "1623"
},
"body": {
"id": "xxxxxx",
"hasAttachments": true,
"internetMessageId": "xxxxxx",
"subject": "xxxxxx",
"bodyPreview": "Txxxxxx",
"importance": "normal",
"conversationId": "xxxxxx",
"isRead": false,
"isHtml": false,
"body": "xxxxxx",
"from": "xxxxxx",
"toRecipients": "xxxxxx",
"ccRecipients": null,
"bccRecipients": null,
"replyTo": null,
"attachments": []
}
}

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,839 questions
Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
975 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,516 Reputation points Microsoft Employee
    2021-03-26T07:07:32.777+00:00

    @Jarrod Callander For Office 365 Outlook Connector, there is an Include Attachments option that needs to be set to fetch attachments along with the message.

    There is a limitation for Email Messages and Calendar Items documented and requires the following workaround (as-is from the docs for reference)

    1 person found this answer helpful.