Add training program link to new person records
When a new person is added to Pipedrive with a training reference, the matching program link from your training table is copied onto their record, so no one has to look it up by hand.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/add-training-program-link-to-new-person-records/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Human Resources (HR) · Learning development
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/add-training-program-link-to-new-person-records
Set it up with the CLI
- Add it. Copies the folder into
zaps/add-training-program-link-to-new-person-records/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/add-training-program-link-to-new-person-records - 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-training-program-link-to-new-person-records - Check it. Its recent runs, with status and errors.
npx zap-pack logs add-training-program-link-to-new-person-records
zaps/add-training-program-link-to-new-person-records/
- 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/pipedrive.tsThe
pipedriveaccount it uses - connections/zapier-tables.tsThe
zapier-tablesaccount it uses - triggers/person-v2.tsWhat starts it:
pipedrivepersonV2 - 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 new person in Pipedrive (
pipedrive,personV2) fires when a person record is created. - Stop early if the person has no training reference in the configured custom field.
- Zapier Tables (
zapier-tables) finds the row whose program key matches that reference exactly. If there is no match, the run stops and nothing is written. No table rows are created. - Pipedrive updates that same person with the program link from the matched row, in the configured link field. No new person is created.
The Zap never creates a table row or a person, and it changes nothing when the reference or the match is missing.
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 |
|---|---|
REPLACE_TRAINING_TABLE_ID |
The Zapier Table that holds the training programs. Look up its ID with the user's Zapier Tables connection. |
REPLACE_PERSON_TRAINING_FIELD |
The Pipedrive custom field that holds the training or program reference. Look up its key with the user's Pipedrive connection. |
REPLACE_PERSON_LINK_FIELD |
The Pipedrive custom field that receives the program link. Look up its key with the user's Pipedrive connection. |
Also review the defaults with them: PROGRAM_KEY_FIELD (f1) and PROGRAM_LINK_FIELD (f2) are the table's columns for the program key to match and the program link to copy. Check them against the table's output schema.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/add-training-program-link-to-new-person-records, replace each REPLACE_… value as this file says, then run npx zap-pack deploy add-training-program-link-to-new-person-records, 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
pipedrive(the account whose people are being updated) andzapier-tables(the account that owns the training table) to the user's connections. The trigger and the action use the same Pipedrive connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/person-v2.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 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 test person whose training field holds a key that exists in the table:
{
"id": 4100001,
"<training field key>": "[install-test] PROG-100"
}
Check that the table lookup returns the row, and that the person's link field now holds that row's program link. Then run it again with a key that isn't in the table, and check that the person is skipped and nothing is written. If run-status tools aren't available, check Pipedrive and the table directly. Ask the user to delete the test person and table row; the agent doesn't delete them. Then publish, confirm the trigger is active, and do the real thing once with a new test person.
Notes
- Table matching is exact. If the table has more than one row with the same key, the lookup uses the most recently created one.
- A missing reference or a missing match skips the run quietly. To hear about these, add a Slack or email step after the
no-matching-programreturn inworkflow.ts. - To normalize lookup values (trim, change case) before the table search, add a plain JavaScript step before
find-training-program.