Giter Site home page Giter Site logo

Comments (7)

valclark10x avatar valclark10x commented on June 10, 2024 2

I had this issue at first and applied the above solution which gave me what I wanted, but limit does not work.

I've tried this:

  const result = await hubspotClient.crm.deals.getAll(2, "0", ['dealName', 'amount', 'address']);

It returns all of the deals. I don't want all the deals, but just two.

from hubspot-api-nodejs.

atanasiuk-hubspot avatar atanasiuk-hubspot commented on June 10, 2024 1

Hi, @Krulaks! I'd update your request to:

const result = await hubspotClient.crm.contacts.getAll(null, "0", properties);

from hubspot-api-nodejs.

sushovan-mryum avatar sushovan-mryum commented on June 10, 2024 1

hey @javonclarke use the deals.basicApi.getPage function

from hubspot-api-nodejs.

HenonoaH avatar HenonoaH commented on June 10, 2024

@sushovan-mryum I'm using basicApi.getPage but it throws HTTP Request Failed error. Any idea?

const {response} = await client.crm[obj].basicApi.getPage(1, '0', properties);

from hubspot-api-nodejs.

RUPAAK avatar RUPAAK commented on June 10, 2024

Hey, I know it's a little off topic but I can't get single contact without using getById function. I want to get a contact based on the email field but can't find any methods to do that.

from hubspot-api-nodejs.

ksvirkou-hubspot avatar ksvirkou-hubspot commented on June 10, 2024

Hey, I know it's a little off topic but I can't get single contact without using getById function. I want to get a contact based on the email field but can't find any methods to do that.

Hi @RUPAAK .
Workable example:

hubspotClient.crm.contacts.basicApi.getById('[email protected]', undefined, undefined, undefined, undefined, 'email')

The SDK version 8.4.1 .

from hubspot-api-nodejs.

ksvirkou-hubspot avatar ksvirkou-hubspot commented on June 10, 2024

@sushovan-mryum I'm using basicApi.getPage but it throws HTTP Request Failed error. Any idea?

const {response} = await client.crm[obj].basicApi.getPage(1, '0', properties);

Hi @HenonoaH .
if it still actual please create a new Issue and add more details.
For me it works correctly.

const contact = await hubspotClient.crm.contacts.basicApi.getPage(1, '0', properties);

from hubspot-api-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.