Searching deals for the value of a *specific* custom_field

msarsale
msarsale Member Posts: 14 VERIFIED MEMBER
5 Up Votes Name Dropper First Comment

I would like to search deals using the API by the value of a *specific* custom field.

I know can add 'custom_fields' in the 'field' parameter, but I don't want to find in ANY custom_field, but specifically in one.

https://developers.pipedrive.com/docs/api/v1/Deals#searchDeals

Any hints?

Answers

  • Manuel Oliveira
    Manuel Oliveira Admin Posts: 1,323 COMMUNITY MANAGER
    1000 Comments 250 Likes 25 Answers Third Anniversary

    Hi @msarsale if you haven't tried it yet, I recommend the same approach that's mentioned in this thread using a filter in your API call

  • msarsale
    msarsale Member Posts: 14 VERIFIED MEMBER
    5 Up Votes Name Dropper First Comment

    Thanks but that won't work: I need to filter for different values; I'm retrieving everything that matches and then filtering with code looking for that value in the desired custom_field