I am trying to use the API to fetch all organizations whose ID is in a given array.
For example :
I have 6 companies in my Pipedrive account with IDs [1, 2, 3, 4, 5, 6]
In the most efficient way possible, I want to fetch companies with IDs [1, 2, 4, 6]
I can’t find a fine way to do this.
itemSearch endpoint does not seem to support search by ID, nor multiple terms search.
Creating a filter from which I could search all org matching that filter does not seem to work either since creating a filter based on IDs does not seem possible
Fetch each org one by one would work but isn’t efficient at all in terms of performance
Are my three assumptions above-mentioned right ? If they are, do you have any suggestion in order to achieve the expected objective ?
I’m just gonna chime in here by saying that the lack of this functionality has been the bane of our existence for years.
No way to fetch multiple specific objects and no way to include details of orgs/persons etc. when fetching deals.
Here’s the workaround we’ve been using extensively:
Have the program create a filter that finds these organisations by the filters endpoint.
Fetch your orgs/deals/whatever from that filter.
Delete the filter.
This is all possible via the api, although obviously not useful in every use case.
It is also kind of inefficient, fragile, slow and prone to resulting in weird behaviour (like random filters that got left behind cause they weren’t deleted for whatever reason).