Search Lead by custom field not working (?)

Hello,

I am trying to search for a lead using a customfield I created (for the deals/leads) where I save the mongoId of the object on our side.

I tried using :

https://api.pipedrive.com/v1/itemSearch?term=5e4feda00a0f147a1c54e7b1&item_types=lead&fields=custom_fields&exact_match=false&start=0&api_token=****

But it returns nothing.

I have the following working great for deals :

https://api.pipedrive.com/v1/itemSearch?term=5e4feda00a0f147a1c54e7b0&item_types=deal&fields=custom_fields&exact_match=false&start=0&api_token=****

Did I do something wrong ?

From what I read in the documentation, lead and deal should work the same on this point API Search by custom field

Thanks,

Stéphane

Hello @Stephane_Delprat

item_types=lead does not support fields=custom_fields, more in the docs

1 Like

Thanks,

So there is no way to bypass this limitation?

(Since Deal and Lead share the same custom fields, I seams strange to me that they don’t work in a similar way)

To my knowledge, there is no good way to bypass it.

1 Like