Microsoft OutlookMail Connector Save Method

@rnikkoprado Save actually saves the mail into Outlook. You want to save it to disk. To do that, you need the SaveAs method. This exists on the actual Outlook MailItem. You can access this from ObjectExplorer.

  1. Select your “mailItem” proxy object in Object Explorer,
  2. Click the icon in the upper right area of the window labelled “Explore Component Properties”.
  3. Locate the “OutlookMail” item and select it.
  4. Select the SaveAs method from this item and drag it into your automation.
  5. You can now click the are from step 2, however now the icon will be labelled “Explore Components” to return to the previous view.
  6. The SaveAs method takes two parameters.
    • The first is the path to where and what file name you wish to save the messages as (C:\Temp\MyMessage.msg" for example).
    • The second is an enum value corresponding to the list below. The easiest way is just to pass it an integer corresponding to the option you prefer (likely a 3).

https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.outlook.olsaveastype?view=outlook-pia