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

Update Company Properties #221

Open
Meekohi opened this issue Mar 2, 2020 · 3 comments
Open

Update Company Properties #221

Meekohi opened this issue Mar 2, 2020 · 3 comments

Comments

@Meekohi
Copy link

Meekohi commented Mar 2, 2020

Trying to update company properties but no luck. Wondering if anyone knows how to make it work:

Hubspot::CompanyProperties.update!('example_prop', {type: "enumeration", options:[{label:"Testing",value:"Testing"}]})

Hubspot::RequestError (Response body: {"status":"error","message":"Property must have type set","correlationId":"8444d0fa-69a1-470e-9910-468a8565816e","propertiesErrorCode":"NO_TYPE_SET","requestId":"3d6d92f7-a7c9-467b-a455-5e8eb62e395a"})

@amiracruceru
Copy link

Did you manage to find any solution for this? I have the same issue with DealProperties...

@amiracruceru
Copy link

amiracruceru commented Jul 30, 2020

In case you still have this issue, you should try writing it as following:
Hubspot::DealProperties.update!('courses', { 'type' => 'enumeration', 'fieldType' => 'checkbox', 'label' => 'Courses', 'groupName' => 'dealinformation', 'options' => [] }). It only accepts string keys, not symbol keys.

@Babbz75
Copy link

Babbz75 commented Aug 18, 2020

Did either of these issues need a fix?

Seem like the repo hasn't had a release in over a year and I'm trying to decide whether to use this gem or just hit Hubspot directly with something like http party.

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

3 participants