Create weekly job invoicing performance report for finance
Every week, the jobs closed in the last seven days are counted from your jobs table and logged as a dated item in your finance database in Notion.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-weekly-job-invoicing-performance-report-for-finance/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Finance · Financial reporting
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-weekly-job-invoicing-performance-report-for-finance
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-weekly-job-invoicing-performance-report-for-finance/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-weekly-job-invoicing-performance-report-for-finance - 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 create-weekly-job-invoicing-performance-report-for-finance - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-weekly-job-invoicing-performance-report-for-finance
zaps/create-weekly-job-invoicing-performance-report-for-finance/
- 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 4 to fill in
- connections/notion.tsThe
notionaccount it uses - connections/zapier-tables.tsThe
zapier-tablesaccount it uses - triggers/every-week.tsWhat starts it:
scheduleeveryWeek - 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:
schedule,everyWeek, every week on Monday at 9:00 AM in the account timezone. - Date range: the run date is captured once. The Zap then works out the seven full days before it (the previous week), formatted MM/DD/YY.
- Zapier Tables searches the jobs table once per day in that range (seven lookups), each on the closed-date field.
- Count: the closed jobs found across the seven days are totalled, and any failed days are listed.
- Notion creates one item in the finance database with the period and the counts as its content.
A lookup that fails is recorded in the report and does not stop the others.
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 |
|---|---|
TABLE_ID |
The Zapier Table that holds the jobs. Ask which table, then look up its ID with the user's Zapier Tables connection |
CLOSED_DATE_FIELD |
The field key of the closed date in that table. Ask which field holds it, then look up its key with the user's Zapier Tables connection |
LOOKUP_VALUE_FIELD |
The field key that receives each day's search value. Normally the closed-date field. Not yet verified against a real table, so confirm it first |
NOTION_DATA_SOURCE_ID |
The finance database that receives the report. Ask which database, then look up its data source ID with the user's Notion connection |
Also review the defaults with them: the run day and time in triggers/every-week.ts (Monday at 9:00 AM) and LOOKBACK_DAYS in workflow.ts (7, the previous week).
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-weekly-job-invoicing-performance-report-for-finance, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-weekly-job-invoicing-performance-report-for-finance, 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
zapier-tables(the account that owns the jobs table) andnotion(the account that owns the finance database) to the user's connections. Schedule by Zapier needs none. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/every-week.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
The trigger supplies no input, so run the workflow once as a draft test with an empty input. Expect:
- Seven Zapier Tables lookups, one per day, each returning its record IDs.
- One Notion item whose content reads
Closed jobs MM/DD/YY to MM/DD/YY: N. Failed day lookups: none.
Check that the Notion item exists and that its count matches the jobs in the table for those days. If run-status tools aren't available, check the result in Notion directly. Ask the user to delete the test item, not the agent. Then publish, confirm the trigger is active, and tell the user when the first run is due.
Notes
- Zapier Tables' Find Records action matches one field against one value and returns only record IDs, so counts by billing methodology and a list of jobs with no invoice number need more reads than this Zap makes.
- The Notion step writes one text summary; the separate number and date properties are not mapped yet.
- To extend it: split the counts by billing methodology, list jobs with no invoice number, post to Slack when that list is over a limit, or write a CSV archive before the Notion item is created.
- Keep real table IDs and Notion data source IDs out of commits.