# Add Data to Custom Objects by NodeJS Hubspot Client

**URL:** <https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [December 17, 2020, 12:38pm UTC](https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315 "2020-12-17T12:38:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RMones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rmones/32/82797_2.png) [@RMones](https://community.hubspot.com/u/RMones)\
**Post date:** [December 17, 2020, 12:38pm UTC](https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315/1 "2020-12-17T12:38:10Z")

</div>

Hi all,

I’m trying to add Data to a custom object by the Hubspot NodeJS API Client.

But i don’t have an option to add data to a custom object.

Is this posible via the provided hubspot connector?

([GitHub - HubSpot/hubspot-api-nodejs: HubSpot API NodeJS Client Libraries for V3 version of the API · GitHub](https://github.com/HubSpot/hubspot-api-nodejs))

Thank you,

Ronald

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [December 18, 2020, 5:56pm UTC](https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315/2 "2020-12-18T17:56:22Z")

</div>

Hey @RMones

Welcome to the Community!

Are you still working in this issue?

I did notice that there was a [new release](https://github.com/HubSpot/hubspot-api-nodejs/releases/tag/3.1.0) 3 days ago. Wonder if what you need was included

---

<div class="post-metadata">

**Author:** ![RMones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rmones/32/82797_2.png) [@RMones](https://community.hubspot.com/u/RMones)\
**Post date:** [December 18, 2020, 6:17pm UTC](https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315/3 "2020-12-18T18:17:05Z")

</div>

Hi,

Thx @dennisedson !  
I see that its updated with objects..  
I’ll give it a try!

Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![RMones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rmones/32/82797_2.png) [@RMones](https://community.hubspot.com/u/RMones)\
**Post date:** [December 21, 2020, 4:07pm UTC](https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315/4 "2020-12-21T16:07:51Z")

</div>

@dennisedson that did the trick..  
Thank you!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [December 21, 2020, 4:08pm UTC](https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315/5 "2020-12-21T16:08:46Z")

</div>

Thanks for confirming!

---

<div class="post-metadata">

**Author:** ![robertainslie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/robertainslie/32/1875_2.png) [@robertainslie](https://community.hubspot.com/u/robertainslie)\
**Post date:** [March 10, 2021, 2:17am UTC](https://community.hubspot.com/t/add-data-to-custom-objects-by-nodejs-hubspot-client/29315/6 "2021-03-10T02:17:56Z")

</div>

For future posterity on this thread:  
When using the HubSpot nodejs API client, if you want to access custom object data, the notation is like this:

`hubspotClient.crm.objects.basicApi.getById('object-name',objectId,['propertyOne,'propertyTwo'])`

Note that you access methods on the ‘crm.objects’ package, and then specify the custom object to access by passing the object name as a parameter argument.  
Here’s a bigger code sample, in which the code is accessing a custom object with the ‘fully qualified object name’ of p203693\_product\_incident’

```lia-code-sample
hubspotClient.crm.objects.basicApi.getById('p203693_product_incident',event.object.objectId, ["product_name", "product_sku"])
.then(results => {
console.log(results.body)
let product_name = results.body.properties.product_name;
let product_sku = results.body.properties.product_sku;

callback({
outputFields: {
productSku: product_sku,
productName: product_name
}
});
})
.catch(err => {
console.error(err);
});
}

```
