---
schema_version: "1"
id: e6645814f7f857be62994b0a6e27c8c5d50c8ec3e2e14b1815ed335b3622887d
title: OperatingHoursHoliday
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_operatinghoursholiday.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_operatinghoursholiday.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 51b0cc5009c79d67d7e88a125d02a578bdad86e44278cdb7215098fab3e2a366
description: Represents the day or hours for which a service territory and service resources exclusive to the service territory are unavailable in Field Service, Salesforce Scheduler, Salesforce Meetings, Sales Engagement, or Workforce Engagement. This object is available in API version 54.0 and later.
---
# OperatingHoursHoliday

Represents the day or hours for which a service territory and service resources exclusive to the service territory are unavailable in Field Service, Salesforce Scheduler, Salesforce Meetings, Sales Engagement, or Workforce Engagement. This object is available in API version 54.0 and later.

## Supported Calls

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

## Special Access Rules

Salesforce Scheduler or Field Service must be enabled.

## Fields

| Field | Details |
| --- | --- |
| DateAndTime | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

(Read-Only) The date or time for the holiday.



 |
| HolidayId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the holiday that’s related to the operating hours indicated in the OperatingHoursId field.

This is a relationship field.

Relationship Name

Holiday

Relationship Type

Lookup

Refers To

Holiday



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time that the current user last viewed a record related to this object.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed this object.



 |
| OperatingHoursHolidayNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

(Read-Only) An auto-generated number identifying the operating hours holiday.



 |
| OperatingHoursId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the operating hours that’s related to the holiday indicated in the HolidayId field.

This is a relationship field.

Relationship Name

OperatingHours

Relationship Type

Lookup

Refers To

OperatingHours



 |