APIs & Integrations

abs-khan
Participante

How is the deal search api supposed to work?

resolver

Hi, I am having trouble understanding this endpoint.

/crm/v3/objects/deals/search

I don't understand why I'm getting a result back, but the results array is blank!!?

Below is a screenshot from my Insomnia client (I've removed the API key after the request).

abskhan_1-1647095599404.png

Can someone please help!!

For more context, I am trying to replicate the v1 API i.e.
/deals/v1/deal/{dealId}

This works fine and returns the expected results. I am assuming the above v3 API is supposed the equivalent of this? If not, please point me in the right direction 🙂

 

(BTW, I also tried the /crm/v3/objects/deals{dealId} endpoint but this only returns a tiny subset of the properties!)


Thanks

Abs

 

0 Avaliação positiva
1 Solução aceita
ChehakWadhdwa
Solução
Membro | Parceiro Diamante
Membro | Parceiro Diamante

How is the deal search api supposed to work?

resolver

Hi abs-khan

Seems like you forgot to send the limit, it is set to 0, set it to greater than zero for example 10 or 100, or according to your needs. , You can see in response total is 1 but it is not showing because you set the limit as 0

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.

Exibir solução no post original

2 Respostas 2
ChehakWadhdwa
Solução
Membro | Parceiro Diamante
Membro | Parceiro Diamante

How is the deal search api supposed to work?

resolver

Hi abs-khan

Seems like you forgot to send the limit, it is set to 0, set it to greater than zero for example 10 or 100, or according to your needs. , You can see in response total is 1 but it is not showing because you set the limit as 0

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.

abs-khan
Participante

How is the deal search api supposed to work?

resolver

Hi ChehakWadhdwa,

Thank you so much for coming back so quickly on this. I can confirm its working as I expected it to now 🙂

 

Just a quick question, where in the documentation can I find what these API fields mean and how they should be used? I'm sure this will be one of many integrations we do and it would be very helpful if either myself or the team could figure things out ourselves

 

Once again,

Thank you very much

Abs

0 Avaliação positiva