Giter Site home page Giter Site logo

Comments (6)

adrian-candidly avatar adrian-candidly commented on June 10, 2024

I'm stuck to the same issue. I try to pass multiple checkboxes filed type.

from hubspot-api-nodejs.

shalev007 avatar shalev007 commented on June 10, 2024

This is pretty old but still relevant,
I fixed it by a hack to the ts linter but, this is not the correct way to resolve this.
const properties = realProperties as { [key: string]: string };

added a pull request to fix this officially
#173

from hubspot-api-nodejs.

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

#173

from hubspot-api-nodejs.

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

Hi everyone.
You can pass bool value as string ('true').

    const input = { 
        properties: {
            'dealname': 'Test',
            'bool_prop': 'true'
        }
    };
    const response = await hubspotClient.crm.deals.basicApi.create(input);

from hubspot-api-nodejs.

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

I'm stuck to the same issue. I try to pass multiple checkboxes filed type.

You can add multiple checkbox as string option3;option1.

const input = { 
    properties: {
        'dealname': 'Test',
        'bool_prop': 'true',
        'multiple_checkbox': 'option3;option1'
    }
  };

  const response = await hubspotClient.crm.deals.basicApi.create(input);

from hubspot-api-nodejs.

maximeMD avatar maximeMD commented on June 10, 2024

Hi there, #173 fixes this for "deals", but i'm figuring the same issue with contacts, and it seems it is not the only model with this issue.
Maybe instead of replacing string by any, using string | number | boolean would be cleaner ?

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.