Add processed employee leave records to master spreadsheet
Each processed leave record that arrives by webhook is added as a new row in your master HR spreadsheet, with dates in DD/MM/YYYY.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/add-processed-employee-leave-records-to-master-spreadsheet/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Human Resources (HR) · HR operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/add-processed-employee-leave-records-to-master-spreadsheet
Set it up with the CLI
- Add it. Copies the folder into
zaps/add-processed-employee-leave-records-to-master-spreadsheet/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/add-processed-employee-leave-records-to-master-spreadsheet - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy add-processed-employee-leave-records-to-master-spreadsheet - Check it. Its recent runs, with status and errors.
npx zap-pack logs add-processed-employee-leave-records-to-master-spreadsheet
zaps/add-processed-employee-leave-records-to-master-spreadsheet/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 2 to fill in
- connections/excel.tsThe
excelaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a processed leave record arrives at a Webhooks by Zapier catch hook (
webhook,hook_v2). An HR system or form posts to it. - Plain code trims and collapses whitespace in the text fields and turns
YYYY-MM-DDdates intoDD/MM/YYYY. Other date formats pass through unchanged. - Microsoft Excel appends one row to the end of the configured worksheet in the HR workbook.
The Zap only appends rows. It never updates earlier rows and does not check for duplicates.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
WORKBOOK_ID |
The Microsoft Excel workbook that is the master sheet, on the user's OneDrive |
WORKSHEET_ID |
The worksheet (tab) inside that workbook that holds the master sheet's rows |
Also review the defaults with them:
FOLDER_ID: the OneDrive folder holding the workbook."root"is the top of the drive.STORAGE_SOURCE:"one_drive", or"sharepoint"for a SharePoint workbook.- The seven column headers (
EMPLOYEE_ID_COLUMNtoNOTES_COLUMN): each must match the worksheet's header row exactly.
Prerequisite question: does the sender post the fields employee_id, employee_name, absence_type, start_date, end_date, provider and notes? If it uses other names, change the input schema in workflow.ts before installing.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/add-processed-employee-leave-records-to-master-spreadsheet, replace each REPLACE_… value as this file says, then run npx zap-pack deploy add-processed-employee-leave-records-to-master-spreadsheet, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
excelto the user's Microsoft Excel connection for the OneDrive account that owns the master workbook. Webhooks by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test, with the workbook set to a test copy of the master sheet (a worksheet whose headers match the constants):
{
"employee_id": "E-1042",
"employee_name": " Jane Example ",
"absence_type": "Annual leave",
"start_date": "2026-11-03",
"end_date": "2026-11-07",
"provider": "Acme HR",
"notes": "Approved by line manager"
}
Check that one new row was appended at the bottom of the worksheet, with Employee ID E-1042, Employee Name Jane Example, and the start and end dates as 03/11/2026 and 07/11/2026. If run-status tools aren't available, check the result in Microsoft Excel directly. Then ask the user to delete that row from the test copy. Publish after the test passes, confirm the trigger is active, and give the user the webhook URL to point the HR system at.
Notes
- Excel's Add Row step takes its column values from the worksheet's header row, so a renamed header breaks the mapping until the constants are updated.
- Dates are written as text in
DD/MM/YYYY. The sheet may show them in its own format. - To skip duplicates, look up the employee ID and date range first and skip the append when a matching row exists.
- To notify on long or high-severity absences, add a Slack or email step after the append.
- Anyone who can post to the catch hook can add rows to the master sheet. Keep the webhook URL private, and never commit a real workbook ID or webhook URL.