cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Email with an email attachment

Hello all,

 

I'm using a flow to process Outlook 365 email attachments and add them to a SharePoint List.

 

Flow works great except when an email has an email as an attachment.

 

An email attachment is not being recognized as an attachment... I've even tried using the out of the box template available, if it has images, pdf, documents, etc it works fine, if you have an email attached thou it gets ignored, it doesn't even show as an attachment.

 

Example:

  Test email -> attachments included: image1.jpg, image2.jpg, reference-email.msg

 

 Total attachments above: 3,

 Total recognized attachments: 2 (only the images, reference-email.msg is not acknowledged as attachment.

 

Anyone has experienced a similar condition? any way to fix this?

 

--- Edit: ---

It seems the connector does not come with this feature, therefore it is not possible, which I believe is a bug in the connector. A message was added to the "I found a bug" forum for followup.

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Outlook-365-msg-attachments-not-accessible-on-Outl... 

 

-- Edit 2: --

Reply from Microsoft Support Team indicate email are considered "attachment items" not "attachments" (however weird that sounds) and the connector does not recognize them as true attachments to be saved.

If you are ok with exporting the email in .eml format and using it this way, there is a post with instructions on how to do it:

https://powerusers.microsoft.com/t5/Building-Flows/Saving-email-attachments-msg-with-flow/td-p/26069... 

 

A suggestion of an API call is the closes to a solution (see replies for more info). An API call seems not to be able to process email .msg attachments either from what I gather on the reply from the Microsoft Support Team guy.

 

Many thanks,

 

Angel

1 ACCEPTED SOLUTION

Accepted Solutions

No @Anonymous  unfortunally don't exist a way by conectors.

In API you can do a API HTTP request.

 

https://docs.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

6 REPLIES 6
ChristianAbata
Super User II
Super User II

@Anonymous  Yes my friend as you says the conector don't list email attachments if the attachment is an email.

Maeby by API.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Anonymous
Not applicable

@ChristianAbata  Is there an alternative to get this type of attachments? or is this a bug? 🤔

No @Anonymous  unfortunally don't exist a way by conectors.

In API you can do a API HTTP request.

 

https://docs.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Hi @Anonymous 

 

Email attachments are not treated as attachments.  See below response from When a new email arrives.

 

{
"From": "xxxxxx",
"To": "xxxxxxx",
"Cc": null,
"Bcc": null,
"Subject": "FlowTest",
"Body":
"Importance": 1,
"BodyPreview":
"HasAttachment": true,
"Id": "AQMkAddddddddDAwATM0MDAAMS1hY2MANi1hMWRjLTAwAi0wMAoARgAAA5e1oQ_RysJEg79osI3jSOgHALMPKX64LmNJoF8uVtSPHQoAAAIBDAAAALMPKX64LmNJoF8uVtSPHQoAAzhgjZ8AAAA=",
"InternetMessageId": "<AM6PR08MB3814dsfdsdsdsfdsfdsfdsfdsfdsfdsf57DBBB79314D9F79dddd12C2DC160@AM6PR08MB3814.ddddd.prod.outlook.com>",
"ConversationId": "AQQkADAwATM0MDAAMS1hY2MANi1hMWRjLTAwAi0wMAoAEAAUB4ZbWm9KuZfw-7Nq7_EX",
"DateTimeReceived": "2020-02-17T21:29:44+00:00",
"IsRead": false,
"Attachments": [],
"IsHtml": true
}

 

There is not much detailed documentation about this. Can't confirm this is a bug or not.

 

https://docs.microsoft.com/en-us/power-automate/email-triggers

 

Your alternate option is zip the email then send as attachment.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Anonymous
Not applicable

Thank you @ChristianAbata and @abm, I have added the report to the "I found a bug" forum.

DeeTronSEAM
Advocate V
Advocate V

This bug still exists when using the Get Email (v2) action.  But the Microsoft Graph API can be used to get at attached emails inside a message.  The Known Issues section of the Office 365 Outlook connector docs gives some instructions on how to get at the appropriate API endpoints.  https://docs.microsoft.com/en-us/connectors/office365/ 

 

Here is the relevant info, but see that page for the current info:

 

There are two types of email attachments:

  • File attachments: Any file, such as a .txt, .jpg, .zip, .pdf etc. A file attachment only has a few properties, one of which is the base-64 encoded content of the file. Latest versions of all triggers support these attachments. EML, MSG and ICS should be attached as files to be available in triggers responses.
  • Item attachments: Email messages and calendar items that are attached to an email. An item attachments has a lot of properties. These attachments are not supported by the connector at the moment. To workaround this issue, you can do the following:

 

 

If you decide to go straight at the Graph API (e.g. using an Azure Function that gets invoked by your Flow),  make sure you consider usage of the ?$expand=attachments parameter to get the nested message's properties included in your root call.

 

e.g. GET   https://graph.microsoft.com/beta/users/{id | userPrincipalName}/mailFolders/{id}/messages/{id}/attachments?$expand=attachments

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (3,533)