APIs & Integrations

vpetukhov
Member

Does the internal values for the call outcome change?

SOLVE

I wanna hardcode id of hs_call_disposition. 
Does the internal values for the call outcome change? Or i can use these ids from documentation 

  • Busy: 9d9162e7-6cf3-4944-bf63-4dff82258764
  • Connected: f240bbac-87c9-4f6e-bf70-924b57d47db7
  • Left live message: a4c4c377-d246-4b32-a13b-75a56a4cd0ff
  • Left voicemail: b2cf5968-551e-4856-9783-52b3da59a7d0
  • No answer: 73a0d17f-1163-4015-bdd5-ec830791da20
  • Wrong number: 17b47fee-58de-441e-a44c-c6300d46f273
0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Does the internal values for the call outcome change?

SOLVE

@vpetukhov 

Yes, these values will not change and you can and must use them for the hs_call_disposition.

View solution in original post

0 Upvotes
3 Replies 3
JSC
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

Does the internal values for the call outcome change?

SOLVE

What about custom outcomes ? Is there any way to get the matching values somewhere ?

Jean-Sébastien Catier

Fondateur

Expert CRM | Partenaire Diamond

Prendre rendez-vous

09 71 07 08 00
js@officers.fr
www.officers.fr
Paris, France
linkedin
0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Does the internal values for the call outcome change?

SOLVE

@JSC 

Unfortunately, my answer is not going to be very satisfying 😥

Typically, I would recommend querying the properties endpoint for that property

eg: https://api.hubapi.com/crm/v3/properties/calls/hs_call_disposition

this will return an options array.  If you do that, you will find that the array is empty...

I have already reported this issue and it is on the to do list of the product team.  No idea on timeline, however.

My hacky not very elegant workaround presently is set the custom outcome in the UI for a record.  Then, querying the get a call endpoint and add hs_call_disposition as a property to be returned. 

eg: https://api.hubapi.com/crm/v3/objects/calls/21532199002?properties=hs_call_disposition

This will return that property value like this

"properties": {
        "hs_call_disposition": "9e70ad67-6843-4f39-a992-fc8bf301a56c",
        "hs_createdate": "2022-05-05T14:56:34.728Z",
        "hs_lastmodifieddate": "2022-05-05T14:56:35.204Z",
        "hs_object_id": "21532199002"
    },

 

I know it is not ideal, but hopefully that will help until the correct method is added.

0 Upvotes
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Does the internal values for the call outcome change?

SOLVE

@vpetukhov 

Yes, these values will not change and you can and must use them for the hs_call_disposition.

0 Upvotes