ServiceAppointment
Represents an appointment booked through Salesforce Scheduler. This object is available in API version 38.0 and later.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete, update(), upsert()
Salesforce Scheduler must be enabled.
Service appointments always have a parent record, which can be an account. Service appointments on accounts represent work being performed for the account.
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Description: (Read only) The account associated with the appointment. This is a relationship field.
- Relationship Name: Account
- Relationship Type: Lookup
- Refers To: Account
- Type: double
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The number of minutes that it took the resource to complete the appointment. When values are first added to the
Actual StartandActual Endfields, theActual Durationis automatically populated to list the difference between theActual StartandActual End. If theActual StartandActual Endfields are subsequently updated, theActual Durationfield doesn’t re-update, but you can manually update it.
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The actual date and time the appointment ended.
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The actual date and time the appointment started.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Represents additional information about the service appointment,
- Type: address
- Properties: Filter
- Description: The address where the appointment is taking place.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the appointment category related to the service appointment. For example, for customers who visit the branch without an appointment, the drop in category is applicable. For pre-booked appointments, the scheduled category is applicable. This field is available in API version 58.0 and later. This is a relationship field.
- Relationship Name: AppointmentCategory
- Relationship Type: Lookup
- Refers To: AppointmentCategory
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the appointment invitation related to the appointment. This field is available in API version 55.0 and later. This field is a relationship field.
- Relationship Name: AppointmentInvitation
- Relationship Type: Lookup
- Refers To: AppointmentInvitation
-
Type: picklist
-
Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
-
Description: The mode of the service appointment. This field is available in API version 60.0 and later.
-
Default value:
Regular -
Possible values:
GroupRegular
- Type: string
- Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
- Description: An auto-assigned number that identifies the appointment.
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The type of appointment. Possible values are:
call—Phone,company—At a branch, orvideo—Video call.
- Type: textarea
- Properties: Create, Nillable, Update
- Description: The appointment booking URL related to the appointment. This field is available in API version 57.0 and later. For Amazon Chime, this field has an encrypted appointment ID.
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The end of the window of time in which the technician is scheduled to arrive at the site. This window is typically larger than the Scheduled Start and End window to allow time for delays and scheduling changes. You can choose to share the Arrival Window Start and End with the customer, but keep the Scheduled Start and End internal-only.
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The beginning of the window of time in which the technician is scheduled to arrive at the site. This window is typically larger than the Scheduled Start and End window to allow time for delays and scheduling changes. You can choose to share the Arrival Window Start and End with the customer, but keep the Scheduled Start and End internal-only.
- Type: int
- Properties: Filter, Group, Nillable, Sort
- Description: The number of attendees associated with the service appointment. This field is available in API version 60.0 and later.
- Type: int
- Properties: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- Description: The maximum number of customers allowed to attend the service appointment. This field is considered when the appointment mode is
Group. This field is available in API version 60.0 and later.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The reason for the service appointment cancellation.
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The date and time when the service appointment status changed to
CheckedIn. This field is available in API version 60.0 and later.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The city where the appointment is completed. The maximum length is 40 characters.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The comments for the service appointment.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The contact associated with the parent record. If needed, you can manually update the service appointment contact. This is a relationship field.
- Relationship Name: Contact
- Relationship Type: Lookup
- Refers To: Contact
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The country where the appointment is completed. The maximum length is 80 characters.
- Type: textarea
- Properties: Create, Nillable, Update
- Description: The description of the appointment.
- Type: dateTime
- Properties: Create, Filter, Sort, Update
- Description: The date by which the appointment must be completed. Earliest Start Permitted and Due Date typically reflect terms in the customer’s service-level agreement.
- Type: double
- Properties: Create, Nillable, Filter, Sort, Update
- Description: The estimated length of the appointment. The duration is in minutes or hours based on the value selected in the
Duration Typefield.
-
Type: picklist
-
Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
-
Description: The unit of duration.
-
Default value:
Hours -
Possible values:
HoursMinutes
- Type: dateTime
- Properties: Create, Filter, Sort, Update
- Description: The date after which the appointment must be completed. Earliest Start Permitted and Due Date typically reflect terms in the customer’s service-level agreement.
- Type: email
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The email address.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The engagement channel type that’s associated with the service appointment. This field is available in API version 56.0 and later. This field is a relationship field.
- Relationship Name: EngagementChannelType
- Relationship Type: Lookup
- Refers To: EngagementChannelType
-
Type: picklist
-
Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
-
Description: The users who can access the group service appointment.
Available in API version 61.0 and later.
-
Default value:
AddedUsers -
Possible values:
AddedAndExperienceSiteAndInvitedUsers—Added, Experience Site, and Invited UsersAddedAndExperienceSiteUsers—Added and Experience Site UsersAddedUsers—Added Users
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: Indicates whether a service resource was automatically assigned to the appointment (
true) or not (false). This field is available in API version 49.0 and later. - Default value:
false
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The date when the service appointment was last modified. Its label in the user interface is
LastModifiedDate.
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The date when the service appointment was last viewed.
- Type: reference
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: The owner of the service appointment. This is a polymorphic relationship field.
- Relationship Name: Owner
- Relationship Type: Lookup
- Refers To: Group, User
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort
- Description: The parent record associated with the appointment. The parent record can’t be updated after the service appointment is created. This is a polymorphic relationship field.
- Relationship Name: ParentRecord
- Relationship Type: Lookup
- Refers To: Account, Case, Lead, Opportunity
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Description: (Read only) The type of parent record: Account.
- Type: phone
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The phone number.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The postal code where the appointment is completed. The maximum length is 20 characters.
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The time at which the appointment is scheduled to end.
ScheduledEnd–ScheduledStart=EstimatedDuration.
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The time at which the appointment is scheduled to start.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The service territory associated with the appointment. This is a relationship field.
- Relationship Name: ServiceTerritory
- Relationship Type: Lookup
- Refers To: ServiceTerritory
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The state where the service appointment is completed. The maximum length is 80 characters.
-
Type: picklist
-
Properties: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
-
Description: The status of the appointment. The picklist includes the following values, which can be customized: The values of the Status picklist appear in the org’s default language.
None—Default value.CheckedIn—Checked InScheduled—Appointment has been assigned to a service resource.Dispatched—Assigned service resource has been notified about their assignment.In Progress—Work has begun.Completed—Work is complete.Cannot Complete—Work couldn’t be completed.Canceled—Work is canceled, typically before any work began
- Type: picklist
- Properties: Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
- Description: The category that each
Statusvalue falls into. TheStatusCategoryfield’s values are identical to the defaultStatusvalues exceptCheckedIn. Use theCheckedInvalue for drop-in customers. If you create customStatusvalues, you must indicate which category it belongs to. For example, if you create aCustomer Absentvalue, you can decide that it belongs in theCannot Completecategory. To learn which processes reference StatusCategory, see How are Status Categories Used?
- Type: textarea
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The street number and name where the service appointment is completed.
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: A short phrase describing the appointment.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The work type associated with the service appointment. This is a relationship field.
- Relationship Name: WorkType
- Relationship Type: Lookup
- Refers To: WorkType
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.
ServiceAppointmentChangeEvent (API version 48.0): Change events are available for the object.
ServiceAppointmentFeed: Feed tracking is available for the object.
ServiceAppointmentHistory: History is available for tracked fields of the object.
ServiceAppointmentOwnerSharingRule: Sharing rules are available for the object.
ServiceAppointmentShare: Sharing is available for the object.