---
schema_version: "1"
id: a1e28e3aac08df928ec96e7ead8d487dc54a16496c6038928e32ca18d09c2230
title: TimeSlot
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/automotive_cloud/sforce_api_objects_timeslot.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.automotive_cloud.meta/automotive_cloud/sforce_api_objects_timeslot.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 26977518ea7dee28162554694cba2a6847b45853becc233720057486555956ea
description: Represents a period of time on a specified day of the week during which an appointment can be scheduled. This object is available in API version 58.0 and later.
---
# TimeSlot

Represents a period of time on a specified day of the week during which an appointment can be scheduled. This object is available in API version 58.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

## Special Access Rules

Automotive and Automotive Scheduler must be enabled.

## Fields

### DayOfWeek

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: The day of the week when the time slot takes place. Possible values are: The default value is Sunday.

- Friday
- Monday
- Saturday
- Sunday
- Thursday
- Tuesday
- Wednesday

### EndTime

- **Type**: time
- **Properties**: Create, Filter, Sort, Update
- **Description**: The time when the time slot ends.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last viewed a record related to this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last viewed this record.

### MaxAppointments

- **Type**: int
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Maximum number of appointments for a single time slot.

### OperatingHoursId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The operating hours that the time slot belongs to. An operating hours’ time slots appear in the Operating Hours related list. This field is a relationship field.
- **Relationship Name**: OperatingHours
- **Relationship Type**: Lookup
- **Refers To**: OperatingHours

### StartTime

- **Type**: time
- **Properties**: Create, Filter, Sort, Update
- **Description**: The time when the time slot starts.

### TimeSlotNumber

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: The name of the time slot. The name is auto-populated to a day and time format—for example, Monday 9:00 AM - 10:00 PM—but you can manually update it.

### WorkTypeGroupId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Work type group assigned to the time slot. This field is a relationship field.
- **Relationship Name**: WorkTypeGroup
- **Relationship Type**: Lookup
- **Refers To**: WorkTypeGroup

## Associated Objects

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.

- [TimeSlotChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_change_event.htm): Change events are available for the object.
- [TimeSlotHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_history.htm): History is available for tracked fields of the object.