Deal Search is not working

SOLVE
New Contributor

I am using https://developers.hubspot.com/docs-beta/crm/search to search Deal.

I can see deal is there but when using Api call to search that deal can't see that. Please find the details below -  

Api: https://api.hubapi.com/crm/v3/objects/deals/search?hapikey=<Myhapikey>

Body:

{
"filterGroups": [
{
"filters": [
{
"propertyName": "dealname",
"operator": "EQ",
"value": "Deal123"
}
]
}
]
}

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
HubSpot Moderator

Thank you, @tanmay.

 

When I make this request:

POST
https://api.hubapi.com/crm/v3/objects/deals/search

{ 
    "filterGroups":[ 
        { 
            "filters":[ 
                { 
                    "propertyName":"dealname",
                    "operator":"EQ",
                    "value":"15Tips and SyringesTipsTips"
                }
            ]
        }
    ]
}

I see this deal returned:

{
  "total": 1,
  "results": [
    {
      "id": "1558442662",
      "properties": {
        "amount": null,
        "closedate": null,
        "dealname": "15Tips and SyringesTipsTips",
        "dealstage": null,
        "pipeline": null
      },
      "createdAt": "2020-02-12T21:26:05.086Z",
      "updatedAt": "2020-02-12T21:26:05.915Z",
      "archived": false
    }
  ]
}

Are you formatting your query differently?

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes
3 Replies 3
Highlighted
HubSpot Moderator

Hi, @tanmay.

 

Apologies for the delayed response.

 

I'm happy to help, but I'll need to know which account you are working out of. Can you share a link to the deal you see inthe UI?

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes
Highlighted
New Contributor
Reply
0 Upvotes
Highlighted
HubSpot Moderator

Thank you, @tanmay.

 

When I make this request:

POST
https://api.hubapi.com/crm/v3/objects/deals/search

{ 
    "filterGroups":[ 
        { 
            "filters":[ 
                { 
                    "propertyName":"dealname",
                    "operator":"EQ",
                    "value":"15Tips and SyringesTipsTips"
                }
            ]
        }
    ]
}

I see this deal returned:

{
  "total": 1,
  "results": [
    {
      "id": "1558442662",
      "properties": {
        "amount": null,
        "closedate": null,
        "dealname": "15Tips and SyringesTipsTips",
        "dealstage": null,
        "pipeline": null
      },
      "createdAt": "2020-02-12T21:26:05.086Z",
      "updatedAt": "2020-02-12T21:26:05.915Z",
      "archived": false
    }
  ]
}

Are you formatting your query differently?

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes