The Holiday Schedule Assignment Object

The Holiday Schedule Assignment object links a Holiday Schedule to a Resource with specific date range control. This is the core object of the Enhanced Holiday Schedule model, enabling precise management of when holidays apply to each resource.

  • Date Range Control: Specify exactly when a schedule’s holidays apply
  • Multiple Schedules: Assign multiple schedules to a single resource
  • Flexible Transitions: Manage schedule changes without editing the Resource record

Object Details

PropertyValue
API NameResourceHeroApp__Holiday_Schedule_Assignment__c
LabelHoliday Schedule Assignment
Plural LabelHoliday Schedule Assignments
Sharing ModelRead/Write
Auto-Number FormatHSA{00000}
History TrackingEnabled

Usage Notes

Delete Behavior

When a Holiday Schedule Assignment is deleted, all associated Resource Forecast records are automatically removed. This ensures no orphaned forecast records remain on the resource’s timesheet.

Multiple Assignments

A resource can have multiple holiday schedule assignments from different schedules at the same time. When assigning multiple schedules to a resource, ensure the same holiday / date does not appear in more than one assigned schedule. If the same date exists in multiple schedules with overlapping assignment date ranges, duplicate forecast records may be created.

Open-Ended Assignments

Leave End Date blank for assignments that should continue indefinitely

Changing Schedules

To switch a resource to a different schedule, update the End Date on the current assignment and create a new assignment with the new schedule

Fields

Standard Fields

Field LabelAPI NameTypeDescription
HSA NumberNameAuto NumberUnique identifier (e.g., HSA00001)

Core Fields

Field LabelAPI NameTypeRequiredTrack HistoryDescription
Holiday ScheduleResourceHeroApp__Holiday_Schedule__cLookupYesYesThe Holiday Schedule to assign
ResourceResourceHeroApp__Resource__cLookupYesNoThe Resource receiving this schedule
Start DateResourceHeroApp__Start_Date__cDateYesYesWhen this assignment becomes effective
End DateResourceHeroApp__End_Date__cDateNoYesWhen this assignment expires (blank = indefinite)

Async Processing Fields

Field LabelAPI NameTypeDescription
Async Job IdResourceHeroApp__Async_Job_Id__cText (18)System field storing the async job identifier during bulk processing
Async Job StatusResourceHeroApp__Async_Job_Status__cText (50)Status of bulk processing: Processing, Pending, Completed, or Failed

Pending – The assignment is queued but waiting for other jobs to complete first

Processing – The assignment is queued and being processed in the background

Completed – All forecast records have been created successfully

Failed – An error occurred during processing (contact your administrator)
Holiday Schedule Last UpdatedResourceHeroApp__Holiday_Schedule_Last_Updated__cDateTimeTimestamp tracking when the linked schedule was last modified

Validation Rules

End Date Must Be Greater Than Start Date

  • API Name: End_Date_must_be_greater_than_Start_Date
  • Condition: End Date is not blank AND End Date <= Start Date
  • Error Message: “End Date must be greater than Start Date”
  • Error Location: End Date field

Resource Cannot Be Changed

The Resource field cannot be changed after the record is created. If you need to assign the schedule to a different resource, delete the existing Holiday Schedule Assignment and create a new one with the correct resource.

  • API Name: Resource_cannot_be_changed
  • Condition: Record is not new AND Resource field has changed
  • Error Message: “Resource cannot be changed after the Holiday Schedule Assignment record is created.”
  • Error Location: Resource field

Related Support Posts:

Ready to get started?

Schedule a call to see if Resource Hero is right for you

Book now