Home > Mobile >  How can I create a msg(outlook) blob in azure storage using a workflow
How can I create a msg(outlook) blob in azure storage using a workflow

Time:04-14

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

  1. Extended MAPI (C or Delphi, Outlook must be installed for the MAPI system to be present) - see StgOpenStorage / StgCreateStorageEx / OpenIMsgOnIStg functions on MSDN.

  2. Create MSG file explicitly in your code - its format is documented, but it is as binary as it gets.

  3. Third party libraries (such as Aspose) - your mileage may vary.

  4. 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 call RDOMail.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

enter image description here

RESULTS:

enter image description here

In storage account

enter image description here

After downloading it to local

enter image description here

  • Related