---
schema_version: "1"
id: b54011461da582d97c527bc9387756dba7484da2d998edc950b13533ae8a82b1
title: Salesforce Scheduler Apex Classes
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-scheduler-dev-guide/guides/salesforce-scheduler/salesforce-scheduler-apex-classes.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/salesforce-scheduler-apex-classes.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c1415d5612e0af8eaab976b66c76c2ae5ee3ad9024e060840ffb110c5b305598
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# Salesforce Scheduler Apex Classes

Salesforce Scheduler provides the `ConnectApi` namespace (also called Connect in Apex) and `LxScheduler` namespace that contains classes for accessing the same data available in the Salesforce Scheduler Business APIs.

You can use these apex classes as an alternative to the Salesforce Scheduler Business APIs to simplify appointment scheduling in Salesforce. For example, use the `createServiceAppointment(createServiceAppointmentInput)` method of the `ConnectApi` namespace as an alternative to the `service-appointments` Connect API to create service appointments.

**note:** Salesforce Scheduler is built on the Salesforce platform (also known as Lighting Experience). The Salesforce platform specific Apex governor limits apply to the Salesforce Scheduler Apex classes and methods requests. For more information on the Lightning platform Apex governor limits, see [Apex Governor Limits](https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm) in Salesforce Developer Limits and Allocations Quick Reference.

The following table lists the available Salesforce Scheduler Apex methods, as well as the corresponding Connect REST API.

|Apex Method|Connect REST API|
|-----------|----------------|
|[`createServiceAppointment(createServiceAppointmentInput)`](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_LightningScheduler_static_methods.htm#apex_ConnectAPI_LightningScheduler_createServiceAppointment_2)|[`service-appointments (POST)`](https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_service_appointments.htm)|
|[`updateServiceAppointment(updateServiceAppointmentInput)`](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_LightningScheduler_static_methods.htm#apex_ConnectAPI_LightningScheduler_updateServiceAppointment_1)|[`service-appointments (PATCH)`](https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_service_appointments.htm)|
|[`getAppointmentCandidates(getAppointmentCandidatesInput)`](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_SchedulerResources.htm#apex_lxscheduler_SchedulerResources_getAppointmentCandidates)|[`getAppointmentCandidates (POST)`](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/requests_ls_getappointmentcandidates.htm)|
|[`getAppointmentSlots(getAppointmentSlotsInput)`](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_lxscheduler_SchedulerResources.htm#apex_lxscheduler_SchedulerResources_getAppointmentSlots)|[`getAppointmentSlots (POST)`](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/requests_ls_getappointmentslots.htm)|

**See Also**  


-   [Salesforce Developer Limits and Allocations Quick Reference: About This Quick Reference](https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_overview.htm)

