add-external-campaign-identifier-to-crm-deal-recordlisted
Install: claude install-skill zapier/awesome-zaps
# Add external campaign identifier to CRM deal record
The Zap's code lives at https://github.com/zapier/awesome-zaps/tree/main/zaps/add-external-campaign-identifier-to-crm-deal-record. Read the files there if this skill was installed on its own.
## What it does
1. **Trigger:** a payload arrives at a Webhooks by Zapier catch hook (`webhook`, `hook_v2`). A marketing tool, landing page or script posts to it.
2. **Filter:** the run continues only if the payload has both a deal ID (`deal_id`) and an external campaign identifier. The identifier is taken from `campaign_id`, then `utm_campaign`, then `external_id`, whichever is present first. Otherwise the run stops and writes nothing.
3. **Pipedrive** looks up the deal by that ID. If the deal doesn't exist, or its external ID field already holds the same value, the run stops.
4. **Pipedrive** updates the deal, overwriting its external ID field with the incoming value.
No new deals are created from webhooks.
## 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 |
| ------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `EXTERNAL_ID_FIELD` | The key of the custom Pipedrive deal field that stores the external