APIs & Integrations

jomasjoao
参加者

Properties are missing options object

解決

I have a problem, with the usage of properties API https://developers.hubspot.com/docs/api/crm/properties
When I use it to get some specific properties, like: hs_call_disposition of object calls, the API returns me the property WITHOUT the options.

jomasjoao_0-1675172155132.png

 

0 いいね!
1件の承認済みベストアンサー
Jaycee_Lewis
解決策
コミュニティーマネージャー
コミュニティーマネージャー

Properties are missing options object

解決

Hey, @jomasjoao 👋 I found this to be confusing as well. To get the values for the call disposition property, you have two options:

Here's a quick example using Postman and hs_call_disposition:

  • GET https://api.hubapi.com/calling/v1/dispositions
  • [
        {
            "id": "9d9162e7-6cf3-4944-bf63-4dff82258764",
            "label": "Busy",
            "deleted": false
        },
        {
            "id": "f240bbac-87c9-4f6e-bf70-924b57d47db7",
            "label": "Connected",
            "deleted": false
        },
        {
            "id": "a4c4c377-d246-4b32-a13b-75a56a4cd0ff",
            "label": "Left live message",
            "deleted": false
        },
        {
            "id": "b2cf5968-551e-4856-9783-52b3da59a7d0",
            "label": "Left voicemail",
            "deleted": false
        },
        {
            "id": "73a0d17f-1163-4015-bdd5-ec830791da20",
            "label": "No answer",
            "deleted": false
        },
        {
            "id": "17b47fee-58de-441e-a44c-c6300d46f273",
            "label": "Wrong number",
            "deleted": false
        },
        {
            "id": "d6ec8b1c-88c9-49c6-b299-bd6ec1594eaf",
            "label": "Refused to work with cats",
            "deleted": false
        }
    ]
  • The response includes both the default dispositions + the custom disposition I created for this test

To be honest, there isn't a document that explains why we have to use a separate endpoint. I do not have any additional details. And I wanted you to know what is available and where to find the info you are after. 

 

Have fun building! 

— Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

元の投稿で解決策を見る

5件の返信
jomasjoao
参加者

Properties are missing options object

解決

Can I use the PHP SDK, to access this legacies endpoints? I didn't find anything about it.

0 いいね!
Jaycee_Lewis
解決策
コミュニティーマネージャー
コミュニティーマネージャー

Properties are missing options object

解決

Hey, @jomasjoao 👋 I found this to be confusing as well. To get the values for the call disposition property, you have two options:

Here's a quick example using Postman and hs_call_disposition:

  • GET https://api.hubapi.com/calling/v1/dispositions
  • [
        {
            "id": "9d9162e7-6cf3-4944-bf63-4dff82258764",
            "label": "Busy",
            "deleted": false
        },
        {
            "id": "f240bbac-87c9-4f6e-bf70-924b57d47db7",
            "label": "Connected",
            "deleted": false
        },
        {
            "id": "a4c4c377-d246-4b32-a13b-75a56a4cd0ff",
            "label": "Left live message",
            "deleted": false
        },
        {
            "id": "b2cf5968-551e-4856-9783-52b3da59a7d0",
            "label": "Left voicemail",
            "deleted": false
        },
        {
            "id": "73a0d17f-1163-4015-bdd5-ec830791da20",
            "label": "No answer",
            "deleted": false
        },
        {
            "id": "17b47fee-58de-441e-a44c-c6300d46f273",
            "label": "Wrong number",
            "deleted": false
        },
        {
            "id": "d6ec8b1c-88c9-49c6-b299-bd6ec1594eaf",
            "label": "Refused to work with cats",
            "deleted": false
        }
    ]
  • The response includes both the default dispositions + the custom disposition I created for this test

To be honest, there isn't a document that explains why we have to use a separate endpoint. I do not have any additional details. And I wanted you to know what is available and where to find the info you are after. 

 

Have fun building! 

— Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

jomasjoao
参加者

Properties are missing options object

解決

Very strange indeed, but i also need another property from DEALS. How do I get that?

jomasjoao_1-1675199982805.png

 

 

0 いいね!
Jaycee_Lewis
コミュニティーマネージャー
コミュニティーマネージャー

Properties are missing options object

解決

Hey, @jomasjoao 👋 There's a separate endpoint for that too 😊 Get all pipelines for a specified object type

 

Request

GET https://api.hubapi.com/crm-pipelines/v1/pipelines/deals

 

Best,

Jaycee

 

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

jomasjoao
参加者

Properties are missing options object

解決

Hey, i also need to find the options for dealstage for Deal, the v3 api has the same problem, it doesn't return the options. :(. Can you help with that?

0 いいね!