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
| Property | Value |
|---|---|
| API Name | ResourceHeroApp__Holiday_Schedule_Assignment__c |
| Label | Holiday Schedule Assignment |
| Plural Label | Holiday Schedule Assignments |
| Sharing Model | Read/Write |
| Auto-Number Format | HSA{00000} |
| History Tracking | Enabled |
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 Label | API Name | Type | Description |
|---|---|---|---|
| HSA Number | Name | Auto Number | Unique identifier (e.g., HSA00001) |
Core Fields
| Field Label | API Name | Type | Required | Track History | Description |
|---|---|---|---|---|---|
| Holiday Schedule | ResourceHeroApp__Holiday_Schedule__c | Lookup | Yes | Yes | The Holiday Schedule to assign |
| Resource | ResourceHeroApp__Resource__c | Lookup | Yes | No | The Resource receiving this schedule |
| Start Date | ResourceHeroApp__Start_Date__c | Date | Yes | Yes | When this assignment becomes effective |
| End Date | ResourceHeroApp__End_Date__c | Date | No | Yes | When this assignment expires (blank = indefinite) |
Async Processing Fields
| Field Label | API Name | Type | Description |
|---|---|---|---|
| Async Job Id | ResourceHeroApp__Async_Job_Id__c | Text (18) | System field storing the async job identifier during bulk processing |
| Async Job Status | ResourceHeroApp__Async_Job_Status__c | Text (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 Updated | ResourceHeroApp__Holiday_Schedule_Last_Updated__c | DateTime | Timestamp 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