APIs & Integrations

philiplindberg
Membro

Unable to create engagements with the NodeJS v3 SDK

resolver

I'm using the official NodeJS v3 SDK and I can't find a way to create engagements, specifically notes and tasks. There's nothing in the docs about this, and even looking through the SDK source code I can't find any references to creating engagments.  

 

How can I achieve this with the latest version of the node SDK?

0 Avaliação positiva
1 Solução aceita
kierana
Solução
Colaborador(a)

Unable to create engagements with the NodeJS v3 SDK

resolver

In the examples folder you can get a rough idea of how to create an Engagement:

 

 const response = await hubspotClient.apiRequest({
  path: `/engagements/v1/engagements`,
  method: 'POST',
  body: payload,
})

 

https://github.com/HubSpot/hubspot-api-nodejs/blob/391b51479fbafae81678e55d9027038a3e9edf21/sample-a...

 

Find more detail on what you need to supply as the body/etc:

 

https://legacydocs.hubspot.com/docs/methods/engagements/engagements-overview

Exibir solução no post original

3 Respostas 3
kierana
Solução
Colaborador(a)

Unable to create engagements with the NodeJS v3 SDK

resolver

In the examples folder you can get a rough idea of how to create an Engagement:

 

 const response = await hubspotClient.apiRequest({
  path: `/engagements/v1/engagements`,
  method: 'POST',
  body: payload,
})

 

https://github.com/HubSpot/hubspot-api-nodejs/blob/391b51479fbafae81678e55d9027038a3e9edf21/sample-a...

 

Find more detail on what you need to supply as the body/etc:

 

https://legacydocs.hubspot.com/docs/methods/engagements/engagements-overview

philiplindberg
Membro

Unable to create engagements with the NodeJS v3 SDK

resolver

Yep, that did it. Thanks!

0 Avaliação positiva
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Unable to create engagements with the NodeJS v3 SDK

resolver

Hey @philiplindberg 

Thanks for adding the question!

 

Going to bring in a smart fellow from the community to see if we can get you an answer

@kierana !  hello, friend!  Do you have thoughts?

 

Thanks!!

d

 

0 Avaliação positiva