Update asset records from inventory changes
When a device's record in your inventory changes, its matching asset record in your central Notion database is found, or created if missing, and updated with the latest details.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/update-asset-records-from-inventory-changes-for-it-teams/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- IT · IT operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/update-asset-records-from-inventory-changes-for-it-teams
Set it up with the CLI
- Add it. Copies the folder into
zaps/update-asset-records-from-inventory-changes-for-it-teams/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/update-asset-records-from-inventory-changes-for-it-teams - 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-asset-records-from-inventory-changes-for-it-teams - Check it. Its recent runs, with status and errors.
npx zap-pack logs update-asset-records-from-inventory-changes-for-it-teams
zaps/update-asset-records-from-inventory-changes-for-it-teams/
- 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/notion.tsThe
notionaccount it uses - triggers/updated-data-source-item-properties.tsWhat starts it:
notionupdated_data_source_item_properties1 to fill in - 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 property changes on an item in the inventory database (
notion,updated_data_source_item_properties). - Notion searches the asset database for an item with the same serial number. Items with no serial number are skipped.
- If the asset record exists and the inventory change is not newer than its
last_edited_time, the run stops and writes nothing. - Notion updates the matching asset record, or creates one if there is no match, copying device name, model, warranty start and end, notes, contact email, assigned owner and inventory status.
The Zap never writes an inventory change over a newer asset record.
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 | Where | What goes there |
|---|---|---|
INVENTORY_DATASOURCE_ID |
config.ts, and datasource in triggers/updated-data-source-item-properties.ts |
The inventory Notion database the trigger watches |
ASSET_DATASOURCE_ID |
config.ts |
The central asset register that gets updated |
Both databases must be shared with the user's Notion connection.
Also review the defaults with them: INVENTORY_IDENTIFIER_PROPERTY and ASSET_IDENTIFIER_PROPERTY in config.ts (the serial number or unique identifier property on each side, both Serial number by default), and FIELD_MAP at the top of workflow.ts, which pairs each inventory property with its asset property. Rename the property names to match their databases.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/update-asset-records-from-inventory-changes-for-it-teams, replace each REPLACE_… value as this file says, then run npx zap-pack deploy update-asset-records-from-inventory-changes-for-it-teams, 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
notionto the user's Notion connection for the workspace that holds both databases. The trigger and the actions use the same one. No other apps need an account. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/updated-data-source-item-properties.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them, with the trigger'sdatasourceset to the inventory answer. 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 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 a sample inventory item. Use sample values only:
{
"id": "sample-inventory-item-1",
"last_edited_time": "2026-11-09T15:00:00.000Z",
"properties": {
"Serial number": "SAMPLE-SN-0001",
"Device name": "[install-test] Laptop",
"Model": "Sample Model 14",
"Warranty start": "2026-01-01",
"Warranty end": "2029-01-01",
"Notes": "Sample note",
"Contact email": "owner@example.com",
"Assigned owner": "Sample Owner",
"Inventory status": "In use"
}
}
Check these results, using an asset database the user controls:
- With an asset record whose serial number is
SAMPLE-SN-0001, that record's fields change to the inventory values and no new row is created. - With the same sample but no
Serial number, the run skips and writes nothing. - With a serial number that is not in the asset database, one new row is created with the same fields.
If run-status tools aren't available, check the result in Notion directly. Ask the user to delete the test rows; the agent doesn't delete test data. Publish only after the test passes, and confirm the trigger is active.
Notes
- The "newer" check compares the inventory item's
last_edited_timewith the asset record's. Those timestamps come from two databases, so it is a best effort, not a true version check. - To alert on new or unmatched devices, add a Slack or email step after the upsert. To tidy warranty dates or owner names, add a formatter step before the save.
- Never commit a real Notion data source ID.