TimeSlot

Represents a period of time on a specified day of the week during which work can be performed in Field Service, Salesforce Scheduler, or Workforce Engagement. Operating hours consist of one or more time slots.

Introduced in API version 38.0.

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

  • 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.
  • Type: time
  • Properties: Create, Filter, Sort, Update
  • Description: The time when the time slot ends.
  • 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 is a relationship field.

  • Relationship name: OperatingHours

  • Relationship type: masterdetail

  • Refers to: OperatingHours

  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Introduced: API version 57.0

  • Description:

    The ID of the recordset filter criteria selected for the time slot.

    This is a relationship field.

  • Relationship name: RecordsetFilterCriteria

  • Relationship type: relationship

  • Refers to: RecordsetFilterCriteria

  • Type: picklist
  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
  • Introduced: API version 65.0
  • Type: time
  • Properties: Create, Filter, Sort, Update
  • Description: The time when the time slot starts.
  • 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 if you wish.
  • Type: picklist
  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
  • Description: The type of time slot. Possible values are Normal and Extended. You may choose to use Extended to represent overtime shifts.

Operating hours are composed of time slots, which indicate the hours of operation for a particular day. After you create operating hours, create time slots for each day. For example, if the operating hours should be 8 AM to 5 PM Monday through Friday, create five time slots, one per day. To reflect breaks such as lunch hours, create multiple time slots in a day: for example, Monday 8:00 AM – 12:00 PM and Monday 1:00 PM – 5:00 PM.

Time slots don’t come with any built-in rules, but you can create Apex triggers that limit time slot settings in your org. For example, you may want to restrict the start and end times on time slots to half-hour increments, or to prohibit end times later than 8 PM.

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.