I want to make unique appointment to put in database using custom extended properties. I find all appointments using FindAppointments():
var appointments = _service.FindAppointments(WellKnownFolderName.Calendar, calendarView);
and than i go trough all appointments using foreach loop:
foreach (var appointment in appointments)
for all appointments which doesn't have extended property:
if (appointment.ExtendedProperties.Count <= 0)
i bind a custom extended property and setting its value with unique meeting id (meetingId) which i specialy generated to be uniqe int number:
var myPropertySetId = new Guid("{6C3A094F-C2AB-4D1B-BF3E-80D39BC79BD3}");
var extendedPropertyDefinition = new ExtendedPropertyDefinition(myPropertySetId, "RateTheMeetingId", MapiPropertyType.Integer);
var bindedAppointment = Appointment.Bind(_service, appointment.Id, new PropertySet(extendedPropertyDefinition));
bindedAppointment.SetExtendedProperty(extendedPropertyDefinition, meetingId);
bindedAppointment.Update(ConflictResolutionMode.AlwaysOverwrite);
but it doesn't work because than i search meetings and try output extended property and tis value i dont get results, its not binded. My question what i'm doing wrong and what other soliutions you could offer to give EXISTING appointments custom extended property? By the way, im working with MS Exchange server 2010_SP2.