Pipedrive - Adding Custom Properties

I am trying to add a Person in PipeDrive - so far am able to add the following:

First Name ising first_name as the Propery Name
Last Name ising lastt_name as the Propery Name

I have a custom field called Note but I get the following error if I try to use it:

ERROR: Pipedrive error response [400]: undefined - Please check developers.pipedrive.com for more information about Pipedrive API.

Error: Pipedrive error response [400]: undefined - Please check developers.pipedrive.com for more information about Pipedrive API.
at Object.pipedriveApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Pipedrive/GenericFunctions.js:64:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Pipedrive/Pipedrive.node.js:2607:32)
at async /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:416:47

Data from the Person is:

{
"company_id": 7931484,
"related_open_deals_count": 0,
"related_closed_deals_count": 0,
"participant_open_deals_count": 0,
"participant_closed_deals_count": 0,
"files_count": 0,
"notes_count": 0,
"followers_count": 1,
"related_won_deals_count": 0,
"related_lost_deals_count": 0,
"active_flag": true,
"first_char": "w",
"next_activity_time": null,
"next_activity_id": null,
"last_activity_id": null,
"org_name": null,
"owner_name": "Sean Kennedy",
"cc_email": "[email protected]",
"ID": 6,
"Owner": {
"id": 12185721,
"name": "Sean Kennedy",
"email": "[email protected]",
"has_pic": 0,
"pic_hash": null,
"active_flag": true,
"value": 12185721
},
"Organization": null,
"Name": "wegrewgk JLKJLKJLK",
"First name": "wegrewgk",
"Last name": "JLKJLKJLK",
"Open deals": 0,
"Closed deals": 0,
"Email messages count": 0,
"Total activities": 0,
"Done activities": 0,
"Activities to do": 0,
"Won deals": 0,
"Lost deals": 0,
"Phone": [
{
"value": "",
"primary": true
}
],
"Email": [
{
"label": "",
"value": "[email protected]",
"primary": true
}
],
"Update time": "2021-05-11 08:17:49",
"Person created": "2021-05-10 15:22:17",
"Visible to": "entire company",
"Profile picture": null,
"Next activity date": null,
"Last activity date": null,
"Last email received": null,
"Last email sent": null,
"Label": "Warm lead",
"Note": "This is a note"
}

I’m trying to add the last field: “Note”: “This is a note”

Many thanks!

Hey @seank1968!

I was able to replicate your issue and I found a solution. Even though we create a custom field in Pipedrive called note, Pipedrive internally stores it with a different name (a bunch of random characters). Hence, when you want to access these custom fields you have to refer to them using the field name Pipedrive uses. One way to find out the field name is execute the Get All operation and get the field name. Once you have the field name, you can use it to refer to the custom field.

So when you have the field name that Pipedirve uses internally, use that same field name instead of the field name you created (note in this case).

Hope this helps :slight_smile:

1 Like

Hi

Thanks for the very quick reply!

Yes, that did help - although I couldn’t see it in the results from Person - Get All

I had to use Person - Get and give it an ID and not have Resolve Properties enabled.

I also notice that it’s visible in the HTML if you inspect the page in Pipedrive admin.

Thanks again