# Different objectId using Calling Extensions SDK and onDialNumber event

**URL:** <https://community.hubspot.com/t/different-objectid-using-calling-extensions-sdk-and-ondialnumber-event/109475>\
**Category:** APIs & Integrations\
**Tags:** sdk\
**Created:** [June 17, 2024, 12:01pm UTC](https://community.hubspot.com/t/different-objectid-using-calling-extensions-sdk-and-ondialnumber-event/109475 "2024-06-17T12:01:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSilva66](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@JSilva66](https://community.hubspot.com/u/JSilva66)\
**Post date:** [June 17, 2024, 12:01pm UTC](https://community.hubspot.com/t/different-objectid-using-calling-extensions-sdk-and-ondialnumber-event/109475/1 "2024-06-17T12:01:06Z")

</div>

Hello all,  
I noticed the onDialNumber event of Calling Extensions SDK is sending the current contact as objectId while doing a click to call and choosing a different contact, both using Contacts Card or using Call button and clicking on a different contact.  
Example: Calling contact id 18632407239 from Contact Card or Call button sends the phoneNumber of 18632407239 (the one we are calling, correct) but objectId of contact 51 (the one we are viewing, wrong) instead of 18632407239.  
This is causing inconsistencies since we are receiving call from one number with the objectId of a different contact.  
Can you please check if it is a bug or if there is any way to get the ID of the contact we are calling?  
Documentation followed.

> **[Calling extensions SDK - HubSpot docs](https://developers.hubspot.com/docs/api-reference/latest/crm/extensions/calling-extensions/calling-sdk)**
>
> Overview of the calling extensions SDK

Thank you!  
Jorge  
IMG1- Calling contact 18632407239 but sends objectId 51.

 ![Screenshot 2024-06-17 at 12.38.06.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/b/db8544b5667ba0ca34f9391819718b4e4e523fab.png)

IMG2- Proof that +351-91-000-1111 is the contact 18632407239

 ![Screenshot 2024-06-17 at 12.40.07.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/2/6262ed7a8d1cc31f7bbbf136f9a6dd05629f68b6.png)

IMG3 - Calling using Call button and choosing a diferent contact also sends the current contact as objectId instead of the contact we are calling.

 ![Screenshot 2024-06-17 at 12.47.11.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/c/9c7126a3c353d5d52b37341c2297201c8ba64020.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 18, 2024, 12:05am UTC](https://community.hubspot.com/t/different-objectid-using-calling-extensions-sdk-and-ondialnumber-event/109475/2 "2024-06-18T00:05:15Z")

</div>

Hey, @JSilva66 👋 This community is primarily a peer-to-peer support channel for our users to help each other. The team that owns this SDK doesn’t participate here. Can you file an issue here, please? [Issues · HubSpot/calling-extensions-sdk · GitHub](https://github.com/HubSpot/calling-extensions-sdk/issues)

Thank you — Jaycee

---

<div class="post-metadata">

**Author:** ![yuki.tanaka-revcomm](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@yuki.tanaka-revcomm](https://community.hubspot.com/u/yuki.tanaka-revcomm)\
**Post date:** [August 17, 2026, 5:02am UTC](https://community.hubspot.com/t/different-objectid-using-calling-extensions-sdk-and-ondialnumber-event/109475/3 "2026-08-17T05:02:04Z")

</div>

I’m not sure if this is the same issue, but since I encountered a similar problem, I’d like to report it here as well:

> [@コンタクトビューから発信すると、Calling Extensions SDK の onDialNumber イベントで意図せぬ objectId が通知される](https://community.hubspot.com/t/calling-extensions-sdk-ondialnumber-objectid/156206):
>
> 概要 Calling Extensions SDK ( [GitHub - HubSpot/calling-extensions-sdk: A JavaScript SDK for integrating calling apps into HubSpot. · GitHub](https://github.com/HubSpot/calling-extensions-sdk) ) を使用して通話連携用の calling application を作成しています。 HubSpot CRM のコンタクトビュー (/contacts/:id/objects/0-1/views/all/list) において、特定のコンタクトレコードの電話番号をクリックして発信を開始した際に通知される onDialNumber イベントに意図せぬ objectId が設定されるケースが存在するようです。 事象について 再現手順 HubSpot CRM のコンタクトビュー (/contacts/:id/objects/0-1/views/all/list) を開きます。 任意のコンタクトレコード (コンタクト A) の詳細ビューを開き (/contacts/:id/record/0-1/:object…

---

<div class="post-metadata">

**Author:** ![JSilva66](https://avatars.discourse-cdn.com/v4/letter/j/a88e4f/32.png) [@JSilva66](https://community.hubspot.com/u/JSilva66)\
**Post date:** [August 17, 2026, 8:20am UTC](https://community.hubspot.com/t/different-objectid-using-calling-extensions-sdk-and-ondialnumber-event/109475/4 "2026-08-17T08:20:47Z")

</div>

Fixed by using the value of `calleeInfo.calleeId`

> **[​onDialNumber - Calling extensions SDK - HubSpot docs](https://developers.hubspot.com/docs/api-reference/latest/crm/extensions/calling-extensions/calling-sdk#ondialnumber)**
>
> Was this page helpful? | Overview of the calling extensions SDK

---

<div class="post-metadata">

**Author:** ![stassey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stassey/32/36_2.png) [@stassey](https://community.hubspot.com/u/stassey)\
**Post date:** [August 17, 2026, 12:58pm UTC](https://community.hubspot.com/t/different-objectid-using-calling-extensions-sdk-and-ondialnumber-event/109475/5 "2026-08-17T12:58:31Z")

</div>

Hey @JSilva66,

Thanks for the update and for jumping in so quickly to help out another member of the community! Hopefully, this thread helps anyone else who runs into the same issue. Have a great day!

Sam | Community Manager
