APIs & Integrations

ATam8
Member

Fetch deals from Custom Deal Stages

I am trying to fetch deals from a custom deals stage that was created in the timeline.
 I am trying to fetch it using filtergroup as follows:

"filterGroups": [
               {
                 "filters": [
                   {
                     "propertyName": "dealstage",
                     "operator": "EQ",
                     "value": "trial"
                   }
                 ]
               }
             ],

I am not getting any deals that are in custom 'trial' stage.

However, I am able to fetch deals from all other standard dealstages.

0 Upvotes
2 Replies 2
ATam8
Member

Fetch deals from Custom Deal Stages

the comma at the end is for other filter groups. Comma is not the issue here. Because when I put value as 'closedwon' (which is a hubspot standard deal stage) it works. 

The 'Trial' dealstage is the custom one I created, but when I fetch the deals from that particular dealstage, there are no responses even though there are deals in it.

0 Upvotes
TDwebdev
Contributor | Diamond Partner
Contributor | Diamond Partner

Fetch deals from Custom Deal Stages

Hi ATam8,

 

It seems that there's a comma at the end of your code.

Can you try the following code instead:

 

"filterGroups": [
               {
                 "filters": [
                   {
                     "propertyName": "dealstage",
                     "operator": "EQ",
                     "value": "trial"
                   }
                 ]
               }
             ]

 

 

Or try:

 

{
 "filters": [
  {
    "propertyName": "dealstage",
    "operator": "EQ",
    "value": "trial"
   }
  ]
}

 



Vet Digital

Did my post solve your question? Help the community by marking it as a solution
0 Upvotes