Skip to content

PranavNagrecha/AwesomeSalesforceSkills / skills/admin/business-hours-and-holidays

business-hours-and-holidays

Verified

Use this skill when creating, deploying, or troubleshooting Salesforce Business Hours and Holidays: the calendars that pause Case escalation rules, entitlement milestones, and Apex BusinessHours math outside working hours. Covers the BusinessHoursSettings metadata, the default calendar, per-region calendars, holiday attachment, the Case Business Hours field, and the BusinessHours Apex class. Trigger keywords: business hours, holidays, SLA clock, escalation not pausing, working hours, support hours, milestone timer weekend. NOT for the escalation rule entries themselves — use admin/escalation-rules. NOT for entitlement process design — use admin/entitlements-and-milestones. NOT for Field Service operating hours or shift scheduling — use admin/fsl-scheduling-setup.

templates/business-hours-and-holidays-template.md

View on GitHub
# Business Hours and Holidays — Design Sheet

Fill this before creating or deploying calendars. Every row maps to a `businessHours` or `holidays` entry in `settings/BusinessHours.settings-meta.xml` or to a consumer setting.

## SLA promise

| Question | Answer |
|---|---|
| SLA wording in the contract or policy | e.g. "first response within 4 business hours" |
| Business time or calendar time? | |
| Round-the-clock exceptions (case types, severities) | |
| Owner of the yearly holiday update | |

## Calendars

| Calendar name | Default? | Time zone | Mon–Fri window | Sat | Sun | Used by (region / team / tier) |
|---|---|---|---|---|---|---|
| US Support Hours | yes | America/New_York | 08:00–20:00 | closed | closed | US accounts |
| EMEA Support Hours | no | Europe/London | 08:00–18:00 | closed | closed | EMEA accounts |

## Holidays (next 12 months)

| Holiday | Date / recurrence | Whole day or window | Attached calendars |
|---|---|---|---|
| New Year's Day | recurring from 2026-01-01 | whole day | US, EMEA |
| Christmas Eve early close | 2026-12-24 | 13:00–18:00 | EMEA |

## How a Case gets its calendar

| Input available at creation | Mapping | Fallback |
|---|---|---|
| Account.Region__c | EMEA → EMEA Support Hours; else US Support Hours | default calendar; log miss |

Implemented as: before-save record-triggered Flow on Case (Example 2).

## Consumer map

| Consumer | Setting | Calendar it reads | Confirmed? |
|---|---|---|---|
| Escalation rule entry "High priority" | `businessHoursSource` = Case | Case's calendar | [ ] |
| Escalation rule entry "Sev-1" | `businessHoursSource` = None | none (24/7 by design) | [ ] |
| Entitlement process "Premier" | process-level calendar | US Support Hours | [ ] |
| Milestone "First Response" | inherits process | US Support Hours | [ ] |
| Apex `CaseBusinessTime` | `Case.BusinessHoursId` with default fallback | Case's calendar | [ ] |

## Deploy and test

- [ ] `Settings:BusinessHours` retrieved from target, merged, checker run
- [ ] Deployed; `SELECT Name, IsDefault, IsActive, TimeZoneSidKey FROM BusinessHours` matches this sheet
- [ ] Clock test (Example 4) passed for each calendar and one attached holiday
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 323kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall