Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompanyProperties doesn't work ?? #200

Open
jeangus opened this issue Aug 21, 2019 · 2 comments
Open

CompanyProperties doesn't work ?? #200

jeangus opened this issue Aug 21, 2019 · 2 comments

Comments

@jeangus
Copy link

jeangus commented Aug 21, 2019

Hi,

I have an issue with the CompanyProperties.
The method create! doesn't send params.
I have the error : Hubspot::RequestError: Response body: {"status":"error","message":"name can not be null or empty"

Did someone have the same problem ?

Thanks for you help !

@cbisnett
Copy link
Collaborator

Can you post the code you're using to create company properties? The error suggests that you aren't setting the name field when trying to create the property and the documentation lists it as a required field (https://developers.hubspot.com/docs/methods/companies/create_company_property).

@jeangus
Copy link
Author

jeangus commented Aug 23, 2019

Hello Chris,

Here is the code :
Hubspot::CompanyProperties.create!( name: "another_example_property", label: "Another Example Property", description: "Another property being created as an example.", group_name: "companyinformation", type: "string", field_type: "text" )

Thanks a lot for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants