Why providing both fields does not guarantee both link
| Scenario | Person's existing org | Org ID passed on deal | Reported outcome |
|---|
| Matching | Org A | Org A | Deal links to Org A (works as expected) |
| Conflicting | Org A | Org B | Deal often keeps Org A, ignoring the explicit Org B value |
| Person has no org | (none) | Org B | Deal links to Org B correctly |
Why the conflict happens
A person record in Pipedrive has its own org_id, and that link is the source of truth for anything created from that person. When a deal-create request carries a person_id, Pipedrive populates the deal's organization from the person rather than from the org_id in your payload. The request succeeds, the deal is created, and the organization on it is the person's — which is why the symptom is a silently wrong association rather than a validation error.
The conflict is only visible when the two values differ. If the person's organization and the org_id you send are the same, the deal looks correct and the precedence never surfaces; the workflow appears to work for months until the first contact who works across two companies comes through. If the person has no organization at all, your explicit org_id is used, which is the third case in the table above and the reason some people conclude the field works fine.
Nothing in the create response flags the substitution. The returned deal object contains an org_id, and it is a real organization, so a workflow that checks only for a non-null value passes. The check that catches it is an equality assertion — does the returned org_id equal the one I sent — and it belongs in every workflow that sets both fields.
Check the person's existing organization link first
- Read the person record first: GET /api/v2/persons/{id} and look at org_id. If it is populated and differs from the organization you want on the deal, you have reproduced the cause without needing to create anything.
- Create one test deal with person_id only and one with org_id only. The first will come back carrying the person's organization; the second will carry exactly what you sent. That pair of results confirms the precedence in your own account rather than in the abstract.
- Compare the org_id in the create response against the org_id in your request body. They are different on a failed link, and a workflow that only checks for a truthy value will never notice.
- Decide which association is actually correct for the business. If the deal's organization should also become the person's, the fix is to update the person; if the person legitimately works with several organizations, the fix is the two-step deal pattern below.
Fix by resolving the person-organization link before creating the deal
Use the two-step pattern whenever the deal's organization can differ from the person's. Create the deal with person_id and the rest of the payload, take the returned deal id, and issue a second PATCH that sets org_id. The update path does not re-derive the organization from the person, so the value you send in the second call is the value that persists.
If instead the person's organization is simply out of date — they moved companies, or the record was created before the organization existed — fix the person, not the deal. A PATCH to /api/v2/persons/{id} setting org_id corrects every future deal created from that person, where the two-step workaround corrects exactly one.
In n8n, keep both calls inside the same execution and connect them directly, so a failure of the second call surfaces as a failed execution rather than leaving a deal linked to the wrong organization. Splitting create and update across two workflows produces exactly the half-applied state you were trying to avoid.
# Step 1 — create with the person; the org will be derived from them
POST https://COMPANY.pipedrive.com/api/v2/deals
x-api-token: YOUR_TOKEN
{ "title": "Acme renewal", "person_id": 456, "value": 12000, "currency": "GBP" }
# -> { "success": true, "data": { "id": 901, "person_id": 456, "org_id": 111 } }
# 111 is the PERSON's organization, not the 789 you may have sent.
# Step 2 — set the organization you actually want
PATCH https://COMPANY.pipedrive.com/api/v2/deals/901
x-api-token: YOUR_TOKEN
{ "org_id": 789 }
# Step 3 — assert, do not assume
GET https://COMPANY.pipedrive.com/api/v2/deals/901
# -> data.person_id === 456 && data.org_id === 789
A stale organization ID from a merge looks identical
Pipedrive lets two organizations be merged into one. The survivor inherits the other's deals, people, and activities, and the merged-away record's ID is retired. A workflow holding that retired ID keeps sending a value that no longer addresses a live organization, and the resulting deal ends up associated with something other than what the workflow intended — the same visible symptom as the precedence conflict, from a completely different cause.
The distinguishing test is where the ID came from. An ID resolved by a search step immediately before use cannot be stale. A hardcoded ID, or one cached in a lookup table built months ago, can be. If your workflow carries organization IDs in configuration rather than resolving them at runtime, assume merges have happened and re-resolve.
This is the practical argument for resolving organizations by a stable external key — a domain, a customer number stored in a custom field — rather than by a Pipedrive ID pasted into a node. Searching by that key each run costs one request and removes an entire class of slow-burning data corruption from accounts where deduplication is routine.
Visibility groups can also make a link look like it silently failed
Pipedrive's visibility group settings (available on some plans) restrict which users or groups can see a given organization or person record, independent of whether a deal is actually linked to it in the underlying data. If a deal was correctly created with both associations but the person testing the result has a more restricted visibility scope than the API token used to create it, the organization link can appear missing in that user's view of the deal while the association genuinely exists in the account's data. Confirm the deal's associations using the API directly (GET the deal by ID and inspect the org_id and person_id fields in the raw response) rather than relying solely on what a specific user sees in the Pipedrive UI, to rule out a visibility-driven false negative before concluding the create call itself failed to link both records.
Checklist before assuming the API silently dropped a field
- Person's existing organization association checked directly in Pipedrive before creating the deal.
- Deal tested with only person_id, and separately with only org_id, to isolate which one the record retains in a conflict.
- Two-step create-then-update pattern tried if the deal's intended organization differs from the person's own default.
- Deal's raw API response inspected directly (org_id and person_id fields) rather than relying only on what one user's UI view shows.
- Organization ID checked for merge history if it is an older, previously cached or hardcoded value.
- Deal re-fetched by ID after creation to confirm both associations landed, rather than trusting the create call's own success response alone.
- If the fix requires two separate API calls (create then update), both steps confirmed to run against the same n8n execution rather than being split across unrelated workflow runs.
Decide which record owns the relationship
The precedence behaviour is only a problem when the data model is ambiguous about who owns the person-to-organization link. In Pipedrive, the person record owns it: a person has one organization, and deals created from that person inherit it. If your business genuinely has contacts who belong to one company, working with that model rather than against it removes the issue permanently and the two-step deal pattern becomes unnecessary.
Where contacts legitimately span several organizations — consultants, brokers, agency contacts, procurement staff at a group with many subsidiaries — the person's single org_id cannot express that, and every workflow touching those contacts has to override it per deal. That is a real modelling constraint rather than a bug, and it is worth naming explicitly so nobody spends another afternoon looking for the setting that turns it off.
The practical compromise most teams land on is to set the person's organization to their primary employer, keep it accurate, and use the create-then-update pattern only on the deal paths where a different organization is expected. That keeps the common case simple and the exceptional case explicit, and it means a person record fetched on its own still tells you something true.
Sources checked for this guide
The community report below describes this exact association conflict when both person and organization IDs are provided on deal creation.
Frequently asked questions
I set both Person ID and Organization ID on the Deal Create node — why did only one link?
A person's existing organization association in Pipedrive can take precedence over a separately specified organization value on the same deal-create request. Check whether the person already has a different organization linked.
Should I update the person's organization before creating the deal?
If the organization you want on the deal should also apply to the person going forward, yes — update the person record explicitly first rather than relying on the deal-create call to reconcile a mismatch.
What if the deal genuinely needs a different organization than the person's own?
Test creating the deal first, then issuing a separate Update Deal call to set the organization explicitly — this two-step approach has been more reliable than setting both fields on a single create call in reported cases.
Does this only happen on Deal Create, or also Deal Update?
The reported cases are specific to Create; if you see similar behavior on Update, apply the same diagnostic — check the person's existing organization link and test the two-step create-then-update pattern.
Why does it work for some contacts and not others?
It works whenever the person has no organization, or has the same one you are sending. The substitution is only visible when the person's org_id differs from the org_id in your payload — typically a contact who works with more than one company.
Is the two-step pattern safe to run for every deal?
Yes. The second PATCH is idempotent, so sending an org_id that already matches changes nothing. Keep both calls in one execution and re-read the deal afterwards to assert both person_id and org_id are what you intended.