Update case records with discovery and BWC statuses
When an evidence intake update arrives, the matching case record in Airtable gets its Discovery and BWC statuses, timestamps and activity log, and a KPI entry is logged for each track.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/update-case-records-with-discovery-and-bwc-statuses/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Legal · E discovery litigation support
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/update-case-records-with-discovery-and-bwc-statuses
Set it up with the CLI
- Add it. Copies the folder into
zaps/update-case-records-with-discovery-and-bwc-statuses/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/update-case-records-with-discovery-and-bwc-statuses - 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 update-case-records-with-discovery-and-bwc-statuses - Check it. Its recent runs, with status and errors.
npx zap-pack logs update-case-records-with-discovery-and-bwc-statuses
zaps/update-case-records-with-discovery-and-bwc-statuses/
- 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 3 to fill in
- connections/airtable.tsThe
airtableaccount 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: an evidence intake payload arrives at a catch hook in
webhook(Webhooks by Zapier). An intake form, script or case tool posts to it. - Airtable finds the case record whose Record ID matches
record_idin the payload. If there is no match, the run stops and writes nothing. - The payload's status, user, note and timestamp are normalized in plain code. A verification flag is set, and the case's activity log is extended with a new line rather than overwritten.
- Airtable creates one KPI entry for Discovery and one for BWC in the KPI tracking table, each with the track's status, the verification flag, the timestamp and the note.
- Airtable updates the case record: the matching track's status and updated time, the verification flag, and the appended activity log.
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 |
|---|---|
BASE_ID |
The Airtable base that holds the case and KPI tables. Its ID starts with app |
CASE_TABLE |
The table of cases, matched by Record ID and updated |
KPI_TABLE |
The KPI tracking table that receives one entry per track |
Defaults to review with them:
CASE_FIELDSandKPI_FIELDSinworkflow.tshold the field names in those two tables. Map them to the user's column headers: the case's Discovery status, BWC status, the two updated times, the verification flag and the activity log.- The intake system must send the case's identifier as
record_id. The code also readsdiscovery_status,bwc_status,user,note,timestampandverified. If the sender uses other names, rename them in the schema before installing. - The default writes a KPI entry for both tracks on every matched update. Ask whether they want entries only when a track's status changed (see Notes).
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/update-case-records-with-discovery-and-bwc-statuses, replace each REPLACE_… value as this file says, then run npx zap-pack deploy update-case-records-with-discovery-and-bwc-statuses, 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
airtableto the user's Airtable connection for the account that owns the case and KPI bases.webhookneeds 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 needs no connection, so itsauthentication_idisnull. 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 Airtable connection before the first test run, and fix any key in
workflow.tsthat doesn't match. Airtable's base and table inputs can only be checked once the connection is authorized.
Once published and the trigger is active, give the user their webhook URL to point their intake system at.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP) before publishing, with a Record ID from the user's case table:
{
"record_id": "recEXAMPLE123",
"discovery_status": "Produced",
"bwc_status": "Received",
"user": "Jane Doe",
"note": "Discovery set produced; BWC files received",
"timestamp": "2026-10-29T10:15:00Z",
"verified": true
}
Check that the matching case row changed: both statuses are set, both updated times show the timestamp, the verification flag is set, and a new line is appended to the activity log. Check that two new KPI rows exist, one for Discovery and one for BWC, each with the note and timestamp. Also run a sample with a Record ID that does not exist and check that nothing is written.
If run-status tools aren't available, check the result in Airtable directly. The user deletes any test data, not the agent.
Notes
- Log changed statuses only: to cut noise, write a KPI entry only when a track's status differs from the case's current value.
- Airtable may show the timestamp in the field's own format and time zone.
- If two cases share a Record ID, only the first is matched. Record IDs are unique within a table, so this should not happen.
- The activity log is appended, so existing history is kept. Long logs can reach Airtable's field size limit; move older lines to an archive field if that happens.
- Never commit a real base ID, table ID or webhook URL. Anyone with the webhook URL can write case updates.