none
Could EWS Managed API handle outlook form? RRS feed

  • Question

  • Hi 

    I have 2 questions below, could you help me?

    1. Since Exchange 2016 has dropped MAPI/CDO, and we’re suggested to use EWS instead.  I want to know, could EWS can handle outlook form, because we want to use EWS Managed API to install outlook form(we have created this form manually already) to user’s mailbox as a message.

    If not, is there any other recommend solution or SDK?

    2. If we have a .msg file, could we use EWS Managed API to create a Email Message by using this .msg file on disk?

    Thanks very much.  Hope for your response.


    • Edited by SimonChenTM Monday, November 9, 2015 1:52 AM
    Friday, November 6, 2015 7:08 AM

All replies

  • 1. You can use EWS to read/write to MAPI properties on a custom Item, but you need to define what you mean by install an Outlook form (eg are you trying to create it in the Personal Forms library). There is nothing in EWS to specifically help you do this you can in EWS create the form (as an FAI in the common views folder) and manually set each of the associated MAPI properties.

    2. MSG is an Office file format (OLE2 compound document) EWS doesn't have an ability to process this type of file format it can process the MIME content stream as an EML file see https://msdn.microsoft.com/en-us/library/office/dn672319%28v=exchg.150%29.aspx (this isn't much use for Custom items create via outlook forms though as the MIME stream doesn't include the associated MAPI properties).

    One alternative to both 1 and 2 is look at using the new Mail App framework which moves you away from typical Outlook forms (which don't work in OWA) to something that is cross platform Modern apps that will work in Outlook 2013,2016 and OWA (I think coming in mobile outlook clients for IOS and Andriod also) https://msdn.microsoft.com/en-us/library/office/fp161135.aspx

    While CDO is gone is 2016, MAPI is still alive in Outlook via MAPI over HTTP and Outlook Anywhere so if you have Outlook installed where you want to run your code you could automate both 1 and 2 using a third party library like Redemption http://www.dimastr.com/redemption/home.htm which would be a few lines of code for both of those. You could also roll you own MAPI/Http client https://channel9.msdn.com/Events/Open-Specifications-Plugfests/Redmond-Interoperability-Protocols-Plugfest-2014/MS-OXCMAPIHTTP

    Cheers
    Glen

    Monday, November 9, 2015 3:57 AM
  • Hi Glen

    Thanks very much.

    And I still have a question about Mail App, if we use Mail App and the app web server is set up in my company's internal network,  can customers use this App when they use Outlook Anywhere? Thanks!

    Best Regards

    Simon

    Monday, November 9, 2015 8:43 AM
  • >> And I still have a question about Mail App, if we use Mail App and the app web server is set up in my company's internal network,  can customers use this App when they use Outlook Anywhere? Thanks!

    The only people that can use the app are those that have access to where the Apps in hosted so if its on an internal network then the only people that could access the Apps would be those that have access to the internal network directly or via a VPN.

    Cheers
    Glen

    Tuesday, November 10, 2015 12:02 AM