question

KenSchosinsky-4796 avatar image
0 Votes"
KenSchosinsky-4796 asked KenSchosinsky-4796 published

Appointments created in Outlook 2016 don't set MyResponseType properly

Update 04.11.2021

Added tag office-outlook-itpro back since the problem is caused by Outlook 2016 writing incorrect data to exchange.

I'd expected outlook to set MyResponseType to Organizer instead of Unknown when creating appointments in an exchange.

Original question

When creating an appointment in Outlook 2016 (16.0.5134.1000) and loading that appointment using EWS managed API (using ews-java-api),

the created appointment has a MyResponseType of Unknown instead of Organizer (same applies to Attendee.ResponseType) When creating an appointment in OWA, the value is set properly.

One side effect is, that updating that appointment by setting an extended property using the default SendInvitationsOrCancellationsMode "SendToAllAndSaveCopy", the exchange answers with the following error message:

 At least one recipient isn't valid., A message can't be sent because it contains no recipients.

For setting that extended property, I used SendInvitationsOrCancellationsMode.SendToNone, but since MyResponseType has an unexpected value, I'd have to compare the organizer's mail to detect if the current user is the organizer of that appointment, which feels like a hack.

Because of the error, I also cannot issue any updates that should send invitations for appointments created by outlook. What would be a proper workaround for this issue?

Server version:

 <h:ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="2308" MinorBuildNumber="14" Version="V2017_07_11" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

Update request:

 <Trace Tag="EwsRequest" Tid="897" Time="2021-10-29 08:46:03Z"><?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><soap:Header><t:RequestServerVersion Version="Exchange2010_SP2"/></soap:Header><soap:Body><m:UpdateItem MessageDisposition="SaveOnly" ConflictResolution="AutoResolve" SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy"><m:ItemChanges><t:ItemChange><t:ItemId Id="someid" ChangeKey="DwAAABQAAADanzjKtR/QQ7Jjaf/w6nlsAAAgCA=="/><t:Updates><t:SetItemField><t:ExtendedFieldURI PropertySetId="c90937ca-1f4b-4d47-bfc3-1195d059a6fa" PropertyName="ThePropertyName" PropertyType="String"/><t:CalendarItem><t:ExtendedProperty><t:ExtendedFieldURI PropertySetId="c90937ca-1f4b-4d47-bfc3-1195d059a6fa" PropertyName="ThePropertyName" PropertyType="String"/><t:Value>2E224B71-1119-44CB-9D12-DE5F75998EA8</t:Value></t:ExtendedProperty></t:CalendarItem></t:SetItemField></t:Updates></t:ItemChange></m:ItemChanges></m:UpdateItem></soap:Body></soap:Envelope></Trace>

CalendarItem:

 <t:CalendarItem><t:ItemId Id="someid" ChangeKey="DwAAABQAAADanzjKtR/QQ7Jjaf/w6nlsAAAgCA=="/><t:ParentFolderId Id="someid" ChangeKey="AQAAAA=="/><t:ItemClass>IPM.Appointment</t:ItemClass><t:Subject>sjhkafs</t:Subject><t:Sensitivity>Normal</t:Sensitivity><t:Body BodyType="HTML">removed</t:Body><t:DateTimeReceived>2021-10-29T08:45:24Z</t:DateTimeReceived><t:Size>40974</t:Size><t:Importance>Normal</t:Importance><t:IsSubmitted>false</t:IsSubmitted><t:IsDraft>false</t:IsDraft><t:IsFromMe>false</t:IsFromMe><t:IsResend>false</t:IsResend><t:IsUnmodified>false</t:IsUnmodified><t:DateTimeSent>2021-10-29T08:45:25Z</t:DateTimeSent><t:DateTimeCreated>2021-10-29T08:45:29Z</t:DateTimeCreated><t:ResponseObjects><t:ForwardItem/></t:ResponseObjects><t:ReminderDueBy>2021-10-30T13:30:00Z</t:ReminderDueBy><t:ReminderIsSet>true</t:ReminderIsSet><t:ReminderMinutesBeforeStart>15</t:ReminderMinutesBeforeStart><t:DisplayCc/><t:DisplayTo>Lastname, Firstname (Testuser)</t:DisplayTo><t:HasAttachments>false</t:HasAttachments><t:Culture>de-DE</t:Culture><t:EffectiveRights><t:CreateAssociated>false</t:CreateAssociated><t:CreateContents>false</t:CreateContents><t:CreateHierarchy>false</t:CreateHierarchy><t:Delete>true</t:Delete><t:Modify>true</t:Modify><t:Read>true</t:Read><t:ViewPrivateItems>true</t:ViewPrivateItems></t:EffectiveRights><t:LastModifiedName>Lastname, Firstname (Testuser)</t:LastModifiedName><t:LastModifiedTime>2021-10-29T08:45:20Z</t:LastModifiedTime><t:IsAssociated>false</t:IsAssociated><t:WebClientReadFormQueryString>removed</t:WebClientReadFormQueryString><t:ConversationId Id="someid"/><t:UID>someid</t:UID><t:DateTimeStamp>2021-10-29T08:45:20Z</t:DateTimeStamp><t:Start>2021-10-30T13:30:00Z</t:Start><t:End>2021-10-30T14:00:00Z</t:End><t:IsAllDayEvent>false</t:IsAllDayEvent><t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus><t:Location/><t:IsMeeting>false</t:IsMeeting><t:IsCancelled>false</t:IsCancelled><t:IsRecurring>false</t:IsRecurring><t:MeetingRequestWasSent>false</t:MeetingRequestWasSent><t:IsResponseRequested>true</t:IsResponseRequested><t:CalendarItemType>Single</t:CalendarItemType><t:MyResponseType>Unknown</t:MyResponseType><t:Organizer><t:Mailbox><t:Name>Lastname, Firstname (Testuser)</t:Name><t:EmailAddress>lastname.firstname@domain.tld</t:EmailAddress><t:RoutingType>SMTP</t:RoutingType><t:MailboxType>Mailbox</t:MailboxType></t:Mailbox></t:Organizer><t:RequiredAttendees><t:Attendee><t:Mailbox><t:Name>Lastname, Firstname (Testuser)</t:Name><t:EmailAddress>lastname.firstname@domain.tld</t:EmailAddress><t:RoutingType>SMTP</t:RoutingType></t:Mailbox><t:ResponseType>Unknown</t:ResponseType></t:Attendee></t:RequiredAttendees><t:Duration>PT30M</t:Duration><t:TimeZone>(UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien</t:TimeZone><t:AppointmentSequenceNumber>0</t:AppointmentSequenceNumber><t:AppointmentState>0</t:AppointmentState><t:ConferenceType>0</t:ConferenceType><t:AllowNewTimeProposal>true</t:AllowNewTimeProposal><t:IsOnlineMeeting>false</t:IsOnlineMeeting><t:NetShowUrl/></t:CalendarItem>








office-outlook-itprooffice-js-devoffice-exchange-server-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @KenSchosinsky-4796,

Welcome to our forum!

Please kindly understand under Outlook tag, we mainly focus on general issues about Outlook desktop client. Considering that your issue may be more related to ews-java-api, I would add "office-js-dev" tag and remove "office-outlook-itpro" under your post to solve it better.

Thanks for your understanding and hope your issue would be resolved soon.

0 Votes 0 ·

0 Answers