Comments (6)
I'm stuck to the same issue. I try to pass multiple checkboxes filed type.
from hubspot-api-nodejs.
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.
from hubspot-api-nodejs.
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.
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.
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)
- How set an http proxy for hubspot api calls? HOT 1
- [BUG] Wrong type for HubDbTableRowV3BatchUpdateRequest 'id' property, should be string instead of number HOT 1
- TypeError: source.on is not a function, when uploading File HOT 1
- TypeError: url_1.URL is not a constructor HOT 2
- Does this module abstract away batching and pagination?
- Missing Notes endpoint HOT 3
- Question | How to get all notes for a specific deal with the info (property) which deal is pinned HOT 8
- Support for Account Informatio API
- What are the best limiter settings for TEN_SECONDLY_ROLLING HOT 3
- Submit Form data? HOT 6
- Several Import errors : Error: ENOENT: no such file or directory, open '/node_modules/@hubspot/api-client/src/discovery/settings/users/UsersDiscovery.ts' HOT 5
- Can `associations` in creation request be optional? HOT 1
- `crm.objects.basicApi.getById` always throws exception on 404 HOT 10
- Functions API is missing the POST_ACTION_EXECUTION on type definition HOT 2
- Automation functions API createOrReplaceByFunctionType doesn't works HOT 2
- BehavioralEventHttpCompletionRequest Properties Types Are String-Only
- Unable to be authorized while using sdk with accessToken HOT 2
- [Question] - Get Deals By Company HOT 1
- 054999I can't reproduce it.
- Question: how to get all chat conversations of contact (e.g. links to the WhatsApp chat in Hubspot) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubspot-api-nodejs.