IArchiveProvider is the external standard interface of archive providers exposed to the service layer and the world in general. The interface aggregates the extensible and provider properties of classes such as ActivityArchiveProvider, ProjectMemberProvide, and InvitationProvider. This acts as an intermediate stage between the pure property interface and the actual provider class that has queries.
After getting an overview by listing invitations for an associate, we plan to accept the invitation with appointmentId = 150. This is done using the AppointmentAgent from the SuperOffice.CRM.Services namespace. All calls to the agent correspond to a web service services call.
Code
Walk-through
In the example, we have created an instance of theAppointmentAgent and called its Accept method passing the appointmentId and the UpdateMode.
Output:
appointmentId 150 is not shown (like it did when we listed it), is that once the invitation has been accepted it becomes a normal appointment without the invitation status set and it can no longer be retrieved by using the InvitationProvider.