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.
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
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
"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 joining the discussion in our community.