Outlook item attached to an email will become .txt format after save the mail message

Hi all,

Here is a scenario we have experienced and wondering have anyone else experienced the same and has a good solution for it.

Scenario:
Email (.msg format) has attached to an email, the mail message is UiPath.MicrosoftOffice365.Models.Office365Message, when save the email that has .msg attachment with Save Mail Message activity, the saved email attachment file type changed to .txt file type instead of the regional Outlook item when it was attached.

Studio Version:
2019.10.5

Packages Version:
UiPath.Mail.Activities 1.12.3
Uipath.MicrosoftOffice365.Activities 1.11.1

We have found a workaround by update the media type for the email (.msg) and after that it will save as normal Outlook item in the attachment, but wanting to know if this was a bug and has already have fix in the latest version. We are planning upgrade the studio soon, but just want to see if this is not an issue in the latest studio and packages.

Thanks

Hi,

We are experiencing the same issue, you mentioned that you changed the media type as a workaround. Could you elaborate where you changed the media type or where you made the changes?

Thanks

Hi,

We did when after the get transaction (get single email), after get the single email, then check all attachment name, for some reasons, the .msg attachment file doesn’t has extension (e.g. email_title rather than email_title.msg).
Once found the file with no extension in the for each loop, just update the media type to “message/rfc822”, below is the example. AttachmentCount was used to help identify the attachment that need to update media type.
MailMessage(0).Attachments(AttachmetnCount).ContentType.MediaType = “message/rfc822”