HubSpot / calling-extensions-sdk

A JavaScript SDK for integrating calling apps into HubSpot.
https://developers.hubspot.com/docs/api/crm/extensions/calling-sdk
MIT License
45 stars 29 forks source link

Invalid objectId onDialedNumber callback #216

Closed murugancmi closed 4 weeks ago

murugancmi commented 1 month ago

Checklist

Description When we click the call button from contact, We receive the contact Object onDialNumber but it contains in 0 in objectId

Expected behaviour Contact object should contain objectId

To Reproduce

  1. Go to your contact
  2. and click the call button

Screenshots/source code { phoneNumber: 'xxxx', phone_number: 'xxxx, countryCode: 'IN', calleeInfo: { calleeId: 120513766, calleeObjectTypeId: '0-1' }, ownerId: 295128649, subjectId: 0, objectId: 0, startTimestamp: 1723291227334, portalId: 81431, toPhoneNumberSrc: 'phone', threadId: 0 }

Device information

Device: Mac book pro OS: macOS Sonam 14.5 Browser: [chrome] Browser Version: [126.0.6478]

esme commented 1 month ago

Hi @murugancmi, you can get the contact info from calleeInfo and the objectId is 120513766 here. We have submitted a request to update the public documentation with calleeInfo. Cc @alonso-cadenas

alonso-cadenas commented 1 month ago

@esme, thank you for digging into this. I've submitted a second request to our technical writers so we can update the documentation.

@murugancmi, apologies for any inconvenience!

prasathsekar commented 12 hours ago

@esme Thank you for the earlier response regarding retrieving contact info from calleeInfo. We've implemented the suggested changes, but we’re facing an issue when dialing contacts mapped to companies.

When calling a contact associated with a company, the objectId and calleeId differ, which are unable to post the call log.

Screenshot 1

Screenshot 2