Thursday, November 10, 2011

Exchange Web Services - OptionalAttendees

When I try to create a new appointment using EWS Managed API, I get the following error.

The request failed schema validation: The element 'OptionalAttendees' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types' has incomplete content. List of possible elements expected: 'Attendee' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types'.

When I add an optional attendee it works but I do not need any optional attendee.

I tried

appointment.OptionalAttendees.Clear();

but no help.

But removing it by using


public readonly static ExtendedPropertyDefinition PidLidOptionalAttendees = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Meeting, 0x00000007, MapiPropertyType.String);


appointment.RemoveExtendedProperty(PidLidOptionalAttendees);

solved my problem.

1 comments:

Nobanno said...

A developer must know the recent updates and techniques. This is an competitive age. Grafwebcuso