Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ConnectApi.UpdateServiceAppointmentInput
| Property | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| serviceAppointmentId | String | The ID of the service appointment to be modified. | Required | 53.0 |
| assignedResources | List<ConnectApi.AssignedResourcesInput> |
Represents the service resources who are assigned
to a service appointment.
When updating an appointment, pass the complete list of required resources. If
you don’t pass a resource who is already assigned to the appointment, the API
deletes that assigned resource. For example, suppose that an existing service
appointment has assigned resources: A and B and you pass B and C in assigned
resources in the PATCH request. The API checks the resource availability of B and
C for existing work type and service territory, and if both are available, the
service appointment gets updated with:
However, if you don’t pass any of the assigned resources, the API assumes there’s no change. When creating an appointment, use extendedFields to add values to any of the fields, including custom fields, in assignedResources as long as you have edit access to those fields. |
Optional | 53.0 |
| lead | ConnectApi.LeadInput | Represents a prospect or lead. Required to create a service appointment for unauthenticated guest users. | Required if serviceAppointment isn’t provided. | 53.0 |
| schedulingPolicyId | String | The ID of the AppointmentSchedulingPolicy object. If no scheduling policy is passed in the request body, the default configurations are used. The only scheduling policy configuration that is used in determining time slots is the enforcement of account visiting hours. | Optional | 53.0 |
| serviceAppointment | ConnectApi.ServiceAppointmentInput | Represents the service appointment details to book an appointment. When updating an appointment, pass only the fields that must be updated. When creating an appointment, use extendedFields to add values to any of the fields, including custom fields, in assignedResources as long as you have edit access to those fields. | Required if lead isn’t provided. | 53.0 |