Regarding the return value of IsCancelled for FindItem in EWS

Sakamoto 0 Reputation points
2024-11-11T04:33:24.6066667+00:00

Since around 10/29, the return value of IsCancelled has returned the following.

'appt.IsCancelled' threw an exception of type 'Microsoft.Exchange.WebServices.Data.ServiceObjectPropertyException'

■Confirmation

The return value of the isCancelled property (type: BOOL) of the Appointment class obtained by the FindItems method is a string.

The timing is such that the property value contains a string around 10/29,

Are there any specification changes or errors in the FindItems method, Appointment class, or isCancelled property?

Environment: Exchange Server: 2013

Connection method: client secret

Permissions: full_access_as_app

-------------Add info-------------

var eventIsCancelled = evnt.TryGetProperty(AppointmentSchema.IsCancelled, out PropVal) ? evnt.IsCancelled : false;

That code gets the value of IsCancelled from TryGetProperty of the Appointment class and sets the value to eventIsCancelled.

As a result, if Ture or False is returned, it can be retrieved.

Do you know why it is now possible to retrieve the code?

I asked other QA.

https://zcusa.951200.xyz/ja-jp/answers/questions/2115850/ews-finditem-iscancelled?comment=question#newest-question-comment

Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
549 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
572 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.