Skip to content

Pipedrive ​

Creates or updates Pipedrive people, organizations, deals and leads, adds a note and schedules a follow-up activity.

The Pipedrive node records an email exchange in the pipeline: it creates or updates the person writing and their organization, opens a deal or a lead, adds the email summary as a note and schedules the follow-up activity.

It works with a Pipedrive user’s personal API token, saved once in Connections. See Pipedrive.

At a glance ​

  • Type: pipedrive.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: Pipedrive
  • Inputs: main
  • Outputs: main
The ports of “Pipedrive”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Pipedrive connection.Pipedrivepipedrive.apimainmainerror · only with “Follow the Error output”Connection: Pipedrive
The ports of “Pipedrive”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Pipedrive connection.

Parameters ​

connection ​

Pipedrive connection — The Pipedrive connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: person.upsert
  • Options:
    • person.upsert — Create or update a person: By exact email address: updates the person if they exist, creates them otherwise.
    • person.find — Find a person by email
    • organization.upsert — Find or create an organization: By exact name.
    • deal.create — Create a deal
    • deal.update — Update a deal: Change its stage or value, or mark it won or lost.
    • lead.create — Create a lead: In the leads inbox, before it becomes a deal.
    • note.create — Add a note: The email summary, on the person, organization, deal or lead.
    • activity.create — Schedule an activity: The follow-up: call, meeting, task, deadline or email.
    • deal.search — Search deals

email ​

Email address

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.email }}
  • Shown when: action is one of person.upsert, person.find
  • Expressions: {{ }} accepted

name ​

Name — The person’s or organization’s name. For a new person with no name, the address is used.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 255 characters at most
  • Example: {{ email.from.name }}
  • Shown when: action is one of person.upsert, organization.upsert
  • Expressions: {{ }} accepted

phone ​

Phone

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 60 characters at most
  • Shown when: action is person.upsert
  • Expressions: {{ }} accepted

title ​

Title

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 255 characters at most
  • Example: {{ email.subject }}
  • Shown when: action is one of deal.create, lead.create
  • Expressions: {{ }} accepted

dealId ​

Deal — The numeric deal ID (dealId from an earlier step).

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Example: {{ data.pipedrive.dealId }}
  • Shown when: action is one of deal.update, note.create, activity.create
  • Expressions: {{ }} accepted

pipeline ​

Pipeline — Empty: the account’s default pipeline.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (pipedrive.pipeline)
  • Listed with the connection in: connection
  • Shown when: action is one of deal.create, deal.update

stage ​

Stage — Empty: the first stage (creation) or unchanged (update).

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (pipedrive.stage)
  • Listed inside: pipeline
  • Listed with the connection in: connection
  • Shown when: action is one of deal.create, deal.update

value ​

Value — A number with a decimal point or comma: 1250.50. Empty = not set.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is one of deal.create, deal.update, lead.create
  • Expressions: {{ }} accepted

currency ​

Currency — ISO 4217 code.

  • Type: Text (string)
  • Required: No
  • Default: EUR
  • 3 characters at most
  • Shown when: action is one of deal.create, deal.update, lead.create
  • Expressions: {{ }} accepted

status ​

Status

  • Type: One choice (options)
  • Required: No
  • Default: unchanged
  • Options:
    • unchanged — Unchanged
    • open — Open
    • won — Won
    • lost — Lost
  • Shown when: action is deal.update

personId ​

Person — The numeric person ID (personId from an earlier step). Empty = none.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is one of deal.create, lead.create, note.create, activity.create
  • Expressions: {{ }} accepted

organizationId ​

Organization — The numeric organization ID. Empty = none.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is one of person.upsert, deal.create, lead.create, note.create, activity.create
  • Expressions: {{ }} accepted

leadId ​

Lead — The lead ID (leadId from an earlier step). Empty = none.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 60 characters at most
  • Shown when: action is one of note.create, activity.create
  • Expressions: {{ }} accepted

content ​

Note text

  • Type: Long text (text)
  • Required: Yes
  • Default: "" (empty)
  • 100000 characters at most
  • Example: {{ data.summary.summary }}
  • Shown when: action is note.create
  • Expressions: {{ }} accepted

subject ​

Activity subject

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 255 characters at most
  • Example: Call back {{ email.from.name }}
  • Shown when: action is activity.create
  • Expressions: {{ }} accepted

activityType ​

Activity type — Pipedrive’s default types. A custom type is entered by its key in expression mode.

  • Type: One choice (options)
  • Required: No
  • Default: call
  • Options:
    • call — Call
    • meeting — Meeting
    • task — Task
    • deadline — Deadline
    • email — Email
  • Shown when: action is activity.create

dueDate ​

Due date — YYYY-MM-DD (or an ISO 8601 instant, of which only the date is kept). Empty = today.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is activity.create
  • Expressions: {{ }} accepted

dueTime ​

Time — Hours and minutes, in UTC: 14:30. Empty = all day.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 5 characters at most
  • Shown when: action is activity.create
  • Expressions: {{ }} accepted

activityNote ​

Activity details

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 100000 characters at most
  • Shown when: action is activity.create
  • Expressions: {{ }} accepted

owner ​

Owner — Empty: the token’s user.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (pipedrive.user)
  • Listed with the connection in: connection
  • Shown when: action is one of person.upsert, deal.create, lead.create, activity.create

customFields ​

Custom fields — The Pipedrive custom field key (a 40-character string, shown under “Data fields”) and its value.

  • Type: Key / value pairs (keyValue)
  • Required: No
  • Shown when: action is one of person.upsert, deal.create, deal.update
  • Expressions: {{ }} accepted

term ​

Search text — At least two characters; searched in the title, notes and custom fields.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is deal.search
  • Expressions: {{ }} accepted

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 10
  • Whole number, from 1 to 100
  • Shown when: action is deal.search

Outputs ​

  • main — Taken once the Pipedrive call succeeds, whatever the action. An error response from Pipedrive fails the step instead.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.<step>.personId }} — string. Person actions: the Pipedrive person ID. Empty when Find a person finds nothing, or in a test run on a creation.
  • {{ data.<step>.created }} — boolean. Create or update a person, Find or create an organization: true when the item was created.
  • {{ data.<step>.found }} — boolean. Find a person: true when a person has that address.
  • {{ data.<step>.person }} — object. The person as Pipedrive returns it (id, name, emails, phones…).
  • {{ data.<step>.organizationId }} — string. Find or create an organization: the organization ID.
  • {{ data.<step>.dealId }} — string. Create and Update a deal: the deal ID.
  • {{ data.<step>.leadId }} — string. Create a lead: the lead ID.
  • {{ data.<step>.noteId }} — string. Add a note: the note ID.
  • {{ data.<step>.activityId }} — string. Schedule an activity: the activity ID.
  • {{ data.<step>.deals }} — array of object. Search deals: the deals found, as Pipedrive search returns them.
  • {{ data.<step>.firstId }} — string. Search deals: the ID of the first one, empty if there is none.
  • {{ data.<step>.simulated }} — boolean. true when the write was described instead of done (test run). Reads always run for real.
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language.

Operations ​

  • Create or update a person (person.upsert, the default): exact search by Email address; updates Name, Phone, Organization, Owner and Custom fields if they exist, creates them otherwise.
  • Find a person by email (person.find).
  • Find or create an organization (organization.upsert), by exact name.
  • Create a deal (deal.create): Title, Value and Currency, Pipeline and Stage (cascading lists), Person, Organization, Owner.
  • Update a deal (deal.update): stage, value, or Status won / lost.
  • Create a lead (lead.create) in the leads inbox; a person or an organization is required.
  • Add a note (note.create) on the person, organization, deal or lead (at least one).
  • Schedule an activity (activity.create): Subject, Type (call, meeting, task, deadline, email), Due date, Time (UTC), Details, attached like a note.
  • Search deals (deal.search).

IDs (personId, dealId…) are numbers: pass those an earlier step publishes.

Example ​

text
action          person.upsert
email           {{ email.from.email }}
name            {{ email.from.name }}

action          activity.create
subject         Call back {{ email.from.name }}
personId        {{ data.person.personId }}
dueDate         {{ data.extraction.callback }}

Tips ​

  • Test runs. Searches run for real; writes are described (simulated is true).
  • Retries. Pipedrive has no idempotency key: a retry may create a note, activity, deal or lead twice. The “Create or update” and “Find or create” actions look first.
  • Errors. integration.unauthorized: token revoked or user deactivated. integration.rejected: a field refused by Pipedrive (stage from another pipeline, unknown custom field). integration.rate_limited is retried: Loop & Roll sends at most 20 requests per 2 seconds per connection. See Error handling.

Loop & Roll — the workflow builder for email.