LightningScheduler Class

Create and update service appointments.

ConnectApi

These methods are for LightningScheduler. All methods are static.

Create a service appointment.

53.0

No

public static ConnectApi.ServiceAppointmentOutput createServiceAppointment(ConnectApi.CreateServiceAppointmentInput createServiceAppointmentInput)

createServiceAppointmentInput

Type: ConnectApi.CreateServiceAppointmentInput

Input parameters to create a service appointment.

Type: ConnectApi.ServiceAppointmentOutput

Considerations for using engagement channel types with the service-appointments resource:

  • Enable Schedule Appointments Using Engagement Channels in Salesforce Scheduler Settings in your Salesforce org.

  • When you create or modify appointments, shifts must be defined in the scheduling policy. For more information on setting up shifts in the scheduling policy, see Define Shift Rules in Scheduling Policy.

    Engagement channel types are not supported with operating hours rules in the scheduling policy.

  • When you use engagement channel type and shifts to create a service appointment, Salesforce Scheduler considers the default value for the Appointment Type (if not specified). However, Salesforce Scheduler only considers the engagement channel type and Appointment Type is ignored.

For an account (existing user):

For a lead (authenticated guest user):

See Also

Update a service appointment.

53.0

No

public static ConnectApi.ServiceAppointmentOutput updateServiceAppointment(ConnectApi.UpdateServiceAppointmentInput updateServiceAppointmentInput)

updateServiceAppointmentInput

Type: ConnectApi.UpdateServiceAppointmentInput

Input parameters to update a service appointment.

Type: ConnectApi.ServiceAppointmentOutput

Considerations for using engagement channel types with the service-appointments resource:

  • Enable Schedule Appointments Using Engagement Channels in Salesforce Scheduler Settings in your Salesforce org.

  • When you create or modify appointments, shifts must be defined in the scheduling policy. For more information on setting up shifts in the scheduling policy, see Define Shift Rules in Scheduling Policy.

    Engagement channel types are not supported with operating hours rules in the scheduling policy.

  • When you use engagement channel type and shifts to modify an appointment, Salesforce Scheduler considers the default value for the Appointment Type (if not specified). However, Salesforce Scheduler only considers the engagement channel type and Appointment Type is ignored.

See Also