none
I cannot update Event-Body-"ContentType" from Office365 Calendar REST API RRS feed

  • Question

  • I get Event from Office365 Outlook Calendar REST API ,and tried to update the Event.
    ( I use this API from Ruby on Rails.
    https://msdn.microsoft.com/office/office365/api/calendar-rest-operations#GetEvent
    https://msdn.microsoft.com/office/office365/api/calendar-rest-operations#Updateevents

    https://msdn.microsoft.com/office/office365/api/complex-types-for-mail-contacts-calendar#ItemBody

    When we create Event via web browser outlook , Event-Body-ContentType is HTML.
    But, when we create Event via outlook app(mobile or desktop), Event-Body-ContentType is Text.

    I want to unify Event-Body-ContentType to HTML, I tried to update Event-Body-ContentType = HTML.
    But, I cannot update Event-Body-ContentType.

    How to update Event-Body-ContentType?

    ```
    event = Microsoft::OutlookServices::Classes::Event.new

    event.subject = 'Any subject'
    event.body = Microsoft::OutlookServices::Classes::ItemBody.new
    event.body.content = 'Something Content'event.body.content_type = 'HTML'

    ```

    Friday, June 3, 2016 5:56 AM

All replies