Developer Announcements

Dadams
HubSpot Employee
HubSpot Employee

Validation changes to company property - Industry

Beginning on July 14th, the industry property on company records will begin correctly validating values when company records are created and updated.

 

What's changing?

While the property type is enumeration, the property is not being validated against the options set up for the property, so it is effectively being treated as a string. We'll be making an update that will validate the Industry property like any other enumeration property.

 

After this update, any updates to the industry property (including setting the property when creating a new company record) will be required to exactly match one of the options set in the property settings, or the operation will fail and return an error with "category": "VALIDATION_ERROR" in the response. Values with extra whitespace around the value will not be counted as an exact match.

 

For example, for the option with the value ACCOUNTING, the following will be invalid:

  • " ACCOUNTING" (with a space at the front)
  • "ACCOUNTING " (with a space at the end)
  • "Accounting" (values must exactly match the `value` of the option, not the `label`)

While the default options for the property use all capital letters for the option value (e.g. "ACCOUNTING", "ANIMATION", "APPAREL_FASHION"), the property can be edited by HubSpot users or integrations, so there may be custom options with mixed capitalization.

 

When is this happening?

The increased validation will go into effect on July 14th, 2023. After that, any updates made using the API to the Industry property that do not pass the validation check will fail and a property validation error will be returned.

 

Please let us know if you have any questions by replying below.

2 Replies 2
staffcircle
Participant

Validation changes to company property - Industry

Hi, to be obsolutely clear, are you saying that this is now case sensitive?  Eg: "Accounting" in external data will not match "ACCOUNTING" in the Hubspot company property?

0 Upvotes
GZani
HubSpot Employee
HubSpot Employee

Validation changes to company property - Industry

Hi @Dadams posting here on behalf of a customer. We have very little information about this change's impacts internally so I'm hoping we can get some clarification here:

"For clarification, it looks like this documentation is saying this change is only taking place on the COMPANY record. I see you also said it's not updating the 'default industry field'. Would it be possible to send me a link to the exact fields in the HubSpot that will be impacted?

 

For background, we don't enrich using the native ZI - HS integration but we do use Form Complete which would push in to HS."

Can you let us know if this would have any impact on the industry filed in the contact records and for people using Form Complete to push data into HubSpot? 

Thank you in advance!