I am trying to create .msg file from shared mailbox using Azure Logic app. But logic app returns json , not able to create .msg file from it.
CodePudding user response:
Firstly, is MSG format a requirement? If you want just something you can open in Outlook, create an EML (MIME) file - Outlook will be happy to open it even EML won't be able to store all custom or Outlook specific properties. EML file format is text based, so it is easy to create in your code.
If you still need MSG format, your options are
Extended MAPI (C or Delphi, Outlook must be installed for the MAPI system to be present) - see StgOpenStorage / StgCreateStorageEx / OpenIMsgOnIStg functions on MSDN.
Create MSG file explicitly in your code - its format is documented, but it is as binary as it gets.
Third party libraries (such as Aspose) - your mileage may vary.
Extended MAPI wrapper like Redemption (I am its author) - you can create an instance of the RDOSession object and call
RDOSession.CreateMessageFromMsgFile
, populate the RDOMail object properties, and callRDOMail.Save
.
CodePudding user response:
After reproducing from our end, Here is one of the workarounds that worked for us. After mentioning the blob name along with its extension (.msg), we could able to get it to work.
Below is my Logic App Screenshot
RESULTS:
In storage account
After downloading it to local