I need to query the DB using an API to find the rigth deal and it’s ID based on say a few fields like say emailid and say name and say date when the deal was created
Possible?
Thanks
manju
I need to query the DB using an API to find the rigth deal and it’s ID based on say a few fields like say emailid and say name and say date when the deal was created
Possible?
Thanks
manju
I’ve not been using the Pipedrive API for a long time, and only with the node.js client so far. But I have an idea of how to do what you’re asking. Here’s my JS code for performing a search based on a term:
const options = {
field_key: 'email',
term: 'santa@northpole.com'
field_type: 'personField',
exact_match: true,
return_item_ids: true
}
pipedrive.SearchResults.field(options, (error, result) => {
if (error) {
// ouch
}
console.log('gotcha!', result)
})
Documentation on the node.js client here https://github.com/pipedrive/client-nodejs#search-for-field-value-matches
And the REST API here https://developers.pipedrive.com/docs/api/v1/#!/SearchResults
Hope you get it working!