EWS: How to get information about the purpose of the resource (room) that was added to the meeting?

After adding a new meeting, I always load the ConflictingMeetingCount property to make sure the meeting is set up normally (for example, concurrency check), for example:

Dim oAppt As New Appointment(exchangeService) ' ..set properties.. oAppt.Save(SendInvitationsMode.SendOnlyToAll) oAppt.Load(New PropertySet(AppointmentSchema.ConflictingMeetingCount)) If oAppt.ConflictingMeetingCount > 0 Then ' Whole lotta meetin goin on End If 

I would like to do the same for the visitors and resources of the room, but I have no idea how to find the appropriate destination, for example, the room added to the meeting. For example (continued from the above):

 oAppt.Resources.Add(" meetingroom1@mahcompany.com ") oAppt.Update(SendInvitationsOrCancellationsMode.SendOnlyToChanged) Dim oResourceAppt = ** get the appt object for this resource ** If oResourceAppt.ConflictingMeetingCount > 0 Then ' This won't do at all End If 

Now, if another user slipped into appt a moment before this code was executed, we now have a conflicting app. Therefore, I would like to get the Appointment object associated with this resource that I just added, so I can check. i.e. Is it possible?

It’s not enough just for FindAppointments in the time interval for this resource, because it simply returns 2 appt objects, but not (afayk) in order to find out which of them belongs to this particular meeting.

Any ideas?

+4
source share

Source: https://habr.com/ru/post/1402720/


All Articles