APIs & Integrations

tanmay
Member

Deal Search is not working

SOLVE

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"
}
]
}
]
}

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Deal Search is not working

SOLVE

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

Associate Certification Manager

View solution in original post

0 Upvotes
3 Replies 3
IsaacTakushi
HubSpot Employee
HubSpot Employee

Deal Search is not working

SOLVE

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

Associate Certification Manager
0 Upvotes
tanmay
Member

Deal Search is not working

SOLVE
0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Deal Search is not working

SOLVE

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

Associate Certification Manager
0 Upvotes