RescheduleRequest Class
Definition
Contains the data that is needed to reschedule an appointment, recurring appointment, or service appointment (service activity).
For the Web API use the Reschedule Action.
Web API support for this message was added with Microsoft Dynamics CRM Online 2016 Update 1 and Microsoft Dynamics CRM 2016 Service Pack 1.
public ref class RescheduleRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class RescheduleRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type RescheduleRequest = class
inherit OrganizationRequest
Public NotInheritable Class RescheduleRequest
Inherits OrganizationRequest
- Inheritance
- Attributes
Examples
#region Reschedule an instance of recurring appointment
// Update the scheduled start and end dates of the appointment
// to reschedule it.
var updateAppointment = new Appointment
{
ActivityId = individualAppointments.Entities.Select(x => (Appointment)x).First().ActivityId,
ScheduledStart = individualAppointments.Entities.Select(x => (Appointment)x).First().ScheduledStart.Value.AddHours(1),
ScheduledEnd = individualAppointments.Entities.Select(x => (Appointment)x).First().ScheduledEnd.Value.AddHours(2)
};
var reschedule = new RescheduleRequest
{
Target = updateAppointment
};
var rescheduled = (RescheduleResponse)svc.Execute(reschedule);
Console.WriteLine("Rescheduled the second instance of the recurring appointment.");
#endregion Reschedule an instance of recurring appointment
The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface. For the complete sample, see the link later in this topic.
Remarks
Message Availability
For this message to work, the caller must be connected to the server.
Usage
Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of the RescheduleResponse class.
Privileges and Access Rights
To perform this action, the caller must have privileges on the specified entity in the Target property and access rights on the specified record in the Target property. For a list of the required privileges, see Reschedule message privileges.
Supported Entities
The following table shows the default entities that support this message. For the listed entities, the caller must be connected to the server for this message to be available.
Entity
Constructors
RescheduleRequest() |
Initializes a new instance of the RescheduleRequest class. |
Properties
ExtensionData |
Gets or sets the structure that contains extra data. Optional. (Inherited from OrganizationRequest) |
Item[String] |
Gets or sets the indexer for the |
Parameters |
Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes. (Inherited from OrganizationRequest) |
RequestId |
Gets or sets the ID of an asynchronous operation (system job). Optional. (Inherited from OrganizationRequest) |
RequestName |
Gets or sets the name of the request. Required, but is supplied by derived classes. (Inherited from OrganizationRequest) |
ReturnNotifications |
For internal use only. |
Target |
Gets or sets the target of the reschedule operation. |