Resource Hero can derive holiday forecast hours from each resource’s RH Capacity weekday hours instead of the fixed hours on the Holiday record. Enable it org-wide with the RHA Setting “Use Resource Capacity For Holiday Hours”, or per resource with the “Holiday Hours Source” field on the Resource record.
Changing these settings does not recompute holiday forecasts that already exist. New holiday forecasts pick up the correct hours when they are created, and two scheduled jobs keep existing forecasts in sync automatically: a reactive job runs hourly after capacity edits, and a full reconcile runs nightly.
Run the resync below when you want changes applied right away. Common cases:
- You just turned on “Use Resource Capacity For Holiday Hours” for the org
- You set a resource’s “Holiday Hours Source” to “Resource Capacity”
- Holiday hours look out of sync and you do not want to wait for the nightly job
Before you run it, confirm each affected resource has RH Capacity records covering its holiday dates. A resource using capacity-based holiday hours receives 0 hours for any holiday date with no covering capacity record.
To preview what would change without writing anything, run this in Setup, Developer Console, Execute Anonymous:
// Preview only: reports how many holiday forecasts are out of sync, writes nothing
ResourceHeroApp.RHA_HolCapResync.resyncDryRun();
To reconcile every holiday forecast to current capacity now:
// Recompute holiday forecast hours from each resource's RH Capacity
ResourceHeroApp.RHA_HolCapResync.resync();
Note: by default the resync updates current and future holidays only. To include past holidays, enable the RHA Setting “Recompute Historical Holiday Hours” before running.
Note: when holiday forecast hours are updated, any automation on Resource Forecast records, such as Flows or Triggers, will execute as well. As a best practice, ensure that appropriate criteria are added to automation so that it executes only as needed.