none
How to get 'CoercionType' of the current e-mail in Office365 Outlook Mail? RRS feed

  • Question

  • How to get 'CoercionType' of the current e-mail in Office365 Outlook Mail? I can not find getter in the OfficeJS library.
    • Edited by appdev534 Wednesday, April 6, 2016 2:59 PM
    Wednesday, April 6, 2016 2:50 PM

Answers

  • Hi, 

    >>How to get 'CoercionType' of the current e-mail in Office365 Outlook Mail?

    What's version of client are you developing with? As far as I know, the enumeration doesn't support the Office for Pad(Outlook). You can refer to the link below about more detail about this enumeration:

    https://dev.office.com/reference/add-ins/shared/coerciontype-enumeration

    And here is an sample that set the body text of the message using "Office.CoercionType.Html":

       var data="<p style='color:red;'>Hello</p>";
            Office.context.mailbox.item.body.setSelectedDataAsync(data,  {coercionType: Office.CoercionType.Html})

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, April 7, 2016 7:20 AM
    Moderator