Removing EWS Appointment Body Text

后端 未结 1 1625
梦毁少年i
梦毁少年i 2021-02-20 06:37

EWS creates appointment with a default \"When\" text in the body. Please see the image below:

\"enter

1条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 07:05

    I created test appointments using EWS in the same manor above and explored the properties of the objects using MFCMAPI and EWS Editor. Via MAPI the when-text is stored in the PidTagHtml property. Via EWS the when-text is stored in the Body property. The when-text exists on the received copy, but not on the original in the sender's calendar folder.

    Based on this it appears the when-text is inserted to the body at send time. If you remove the line

    newAppointment.RequiredAttendees.Add("first.last@acme.com");
    

    then an appointment is created instead of a meeting. In that case the when-text doesn't come into play.

    1. I'm pretty sure there's no way to get around this behavior, except for going into the recipient's mailbox and removing the text on the received copy.
    2. Even if there was a better workaround, I wouldn't recommend doing it because both Outlook and OWA create meetings in the same manor.

    0 讨论(0)
提交回复
热议问题