APIs & Integrations

tanmay
Mitglied

Deal Search is not working

lösung

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 Akzeptierte Lösung
IsaacTakushi
Lösung
HubSpot Employee
HubSpot Employee

Deal Search is not working

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
3 Antworten
IsaacTakushi
HubSpot Employee
HubSpot Employee

Deal Search is not working

lösung

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
Mitglied

Deal Search is not working

lösung
0 Upvotes
IsaacTakushi
Lösung
HubSpot Employee
HubSpot Employee

Deal Search is not working

lösung

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