Custom Fields
Custom fields that you have created in Pipedrive for any record type will be represented as a unique ID string. Follow these steps to find the text label for the custom field:
- Go to Settings
- Click “Custom Fields”
- Select the record type: Deal, Contact, Organization or Activity
- Scan for the custom field unique ID string that matches the Field API Key in Pipedrive. The Field Name can then be found to the left of the Field API Key column that matches what you see.
You can then rename the field in the card in your Flow to match the text label:
- Hover over the card within your Flow on which you wish to rename a field
- Click the cog icon on the bottom of the card
- Click the pencil icon next to the field you are renaming
- Type in a new Display Name
- Click Save
If your custom field is formatted as single option, the field will only take in certain values, each one of which is identified as a unique ID. Therefore, when writing to a custom, single option field in Pipedrive, you will need to enter in the ID of the option into that custom field, NOT the display name you see in Pipedrive.
For example, let’s say you have a single option custom field labeled “Lead Source” on a Pipedrive contact with a Field API Key of 12309fojpiawef123dr12s3jf978 and dropdown options of “Outbound” and “Inbound”. The options “Outbound” and “Inbound” will be assigned an ID automatically through the Pipedrive API, let’s say 121 for “Outbound” and 122 for “Inbound”. When you are creating a contact in Pipedrive via a Flow that came through an inbound lead source, you would type 122 into the field 12309fojpiawef123dr12s3jf978 on the Pipedrive Create card.
How do you know where to find the ID of the dropdown options?
To find the ID of the single options, you need to go to Pipedrive’s API documentation. Don’t be intimidated though, you don’t need to be an engineer to follow these steps:
- Go to Settings.
- Click the Personal category and then API.
- Copy your personal API token.
- Visit this link: https://developers.pipedrive.com/v1. This is Pipedrive’s API documentation.
- Scroll down until you see the header “The API endpoints & live testing”. Paste your personal API token into the box labeled “Type in your API token for live testing”.
- Scroll down until you find the record type on which you need to find the dropdown IDs. NOTE: “Contacts” are called “Persons” in the API documentation.
- Click the GET button next to the “Get all xxxx fields” button. For example, if you are looking for the dropdown ID of a custom field on a Contact, click the GET button next to the box labeled “Get all person fields”.
- Hit “Try it!”
- Either scroll to find the name of the custom field you are searching for or hit control F on your keyboard to search for the field.
- Once you find the custom field, you’ll notice first of all that the “key” above the field name is the Field API Key that you found before. Below the “options” header, you’ll see a list of the possible options on that field. The “id” is the number you need to type into the field. The “label” is the human-readable text you see when you are in Pipedrive.
From the Lead Source example above, you would see something like this in Pipedrive’s API documentation (important information in bold):
“id”: 1234,
“key”: “12309fojpiawef123dr12s3jf978”,
“name”: “Lead Source”,
“order_nr”: 9,
“field_type”: “enum”,
“add_time”: “2016-04-22 23:21:57”,
“update_time”: “2016-07-05 15:25:50”,
“active_flag”: true,
“edit_flag”: true,
“index_visible_flag”: true,
“details_visible_flag”: true,
“add_visible_flag”: true,
“important_flag”: false,
“bulk_edit_allowed”: true,
“options”: [ { “id”: 121, “label”: “Outbound” }, { “id”: 122, “label”: “Inbound” …
Again, type 122 into the field in the card in order to select Inbound as your Contact’s Lead Source.
What about multiple option custom fields?
If you have a custom field that can take in multiple options, follow the same steps above. Then, when entering the option ID into the field in the card, separate each value by a comma and no spaces. For example, if Lead Source was a multiple option field and you wanted to make the Contact’s Lead Source both Inbound AND Outbound, you would type 121,122 into the Lead Source field.