Error with multipleOption field via API

Ashley Sterland
Ashley Sterland Member Posts: 3 VERIFIED MEMBER
Second Anniversary Photogenic
edited July 2022 in Sales CRM #1

Here is the error we are getting:

Failed to create lead, error message: provided dataset is not valid, error_info: Custom field validation failed. Error: Expected values of multipleOption field to be numbers.

On the website this field is a dropdown. The option names in the website and in Pipedrive match. Any help would be appreciated.

Comments

  • Stylaquin
    Stylaquin Member Posts: 1 VERIFIED MEMBER
    First Comment

    I'm having the same problem.

  • Mg
    Mg Member Posts: 1 VERIFIED MEMBER
    First Comment

    The same issue here, dropdown in FB forms, the same values in Pipedrive, does not want to go through via Zapier.

    Pls help.

  • CarlosPD
    CarlosPD Posts: 40 VERIFIED MEMBER
    Second Anniversary 10 Comments 5 Likes First Answer

    Hey @Mg and others on this thread! Our apologies for the confusion here. When adding a value for a multiple option field via API, you need to include the option's ID in the request. Each multiple option custom field has its own API key, but the options in that multiple option field each have their own ID.

    For example, let's say I had a multiple option field called "Payment Type" with the key: 894d5a3952d755bd279fe848c3b806c9513a019f

    This field has three options: CC, Cash, Debit

    Each of these three options would have their own unique ID. (Ex: CC=ID:13, Cash=ID:14, Debit=ID:15)

    Now, if I wanted to add the payment type of "Cash" to the deal, I would use the ID: 14

    So the request to add "Cash" to this field would look like:

    "894d5a3952d755bd279fe848c3b806c9513a019f" : "14"

    If you wanted to add multiple options, you just need to separate each option ID by comma. So for "Cash" and "Debit", the request would look like:

    "894d5a3952d755bd279fe848c3b806c9513a019f" : "14, 15"

    If you are uncertain of the option ID's of a particular deal/lead field, you can use the request below to retrieve them:

    For person fields:

    For Organization fields:

    If you need any further clarification on this, please feel free to open up a chat or contact support@pipedrive.com anytime. In the meantime I hope this helps!

  • bdhvl
    bdhvl Member Posts: 1 VERIFIED MEMBER
    First Comment

    Is there a way to get the option ID's for the LEAD object?

This discussion has been closed.