Reschedule Message

banner art

Reschedules an appointment.

The relevant classes are specified in the following table.

Type Class
Request RescheduleRequest
Response RescheduleResponse
Target TargetSchedule
Entity See below.

The following table shows the entities and target classes for this message.

Entity Target Class
appointment TargetScheduleAppointment
serviceappointment TargetScheduleServiceAppointment
Dynamic entity TargetScheduleDynamic

Remarks

To perform this action, the caller must have access rights on the entity instance specified in the request class. For a list of required privileges, see Reschedule Privileges.

Example

The following code example shows how to use the Reschedule message.

[C#]
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the target.
TargetScheduleAppointment target = new TargetScheduleAppointment();
target.Appointment = retrieved;

// Create the request object.
RescheduleRequest reschedule = new RescheduleRequest();

// Set the properties of the request object.
reschedule.Target = target;

// Execute the request.
RescheduleResponse rescheduled = (RescheduleResponse)service.Execute(reschedule);

[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the target.
Dim target As New TargetScheduleAppointment()
target.Appointment = retrieved

' Create the request object.
Dim reschedule As New RescheduleRequest()

' Set the properties of the request object.
reschedule.Target = target

' Execute the request.
Dim rescheduled As RescheduleResponse = CType(service.Execute(reschedule), RescheduleResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.