APIs & Integrations

Toni_Atanasov
Member

Enumeration property has no options

I'm performing a GET request to the deals API to fetch the options for a given enumeration field. However, for some fields, the options array is empty. Here's an example:

 

$response = $hubspot->crm()->properties()->coreApi()->getByName('deals', 'deal_currency_code');

// [
//    "name" => "deal_currency_code",
//    "label" => "Currency",
//    "description" => "Currency code for the deal.",
//    "groupName" => "dealinformation",
//    "type" => "enumeration",
//    "fieldType" => "select",
//    "fieldLevelPermission" => null,
//    "hidden" => false,
//    "createdAt" => 1565059313275,
//    "readOnlyDefinition" => true,
//    "formField" => false,
//    "displayOrder" => -1,
//    "readOnlyValue" => false,
//    "mutableDefinitionNotDeletable" => false,
//    "favorited" => false,
//    "favoritedOrder" => -1,
//    "calculated" => false,
//    "externalOptions" => true,
//    "displayMode" => "current_value",
//    "showCurrencySymbol" => null,
//    "hubspotDefined" => true,
//    "referencedObjectType" => null,
//    "createdUserId" => null,
//    "externalOptionsReferenceType" => null,
//    "searchableInGlobalSearch" => false,
//    "hasUniqueValue" => false,
//    "optionSortStrategy" => null,
//    "numberDisplayHint" => null,
//    "currencyPropertyName" => null,
//    "textDisplayHint" => null,
//    "optionsAreMutable" => null,
//    "searchTextAnalysisMode" => null,
//    "isCustomizedDefault" => false,
//    "updatedUserId" => null,
//    "deleted" => null,
//    "updatedAt" => 1653695115346,
//    "options" => [],
//];

 

 

5 Replies 5
Jaycee_Lewis
Community Manager
Community Manager

Enumeration property has no options

Hey, @AWhyBravo can you share an example request, body, and response? It will be easier to give a concrete answer or solution with a specific example. Thank you! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
AWhyBravo
Participant

Enumeration property has no options

Does anyone have a solution for this?

0 Upvotes
GreyHamilton
Participant | Elite Partner
Participant | Elite Partner

Enumeration property has no options

I've found that if the request comes back with true then the enumeration values are stored in a different table. If you're just looking for the enumeration values try:

 

Did this post help solve your problem? If so, please mark it as a solution.

Grey Hamilton, Sr. Technical Consultant
Bayard Bradford

Advanced CRM Implementation | HubSpot Custom Integration Services | Datawarehouse.io Apps for HubSpot
Elite HubSpot Solutions Partner
> Follow me on LinkedIn
BHoekstra
Participant

Enumeration property has no options

Hello, I've encountered this issue with externalOptions as well. If you have any insight into where these enumeration values are and how I can grab them using the api it would be much appreciated!

Currently it is an issue as I need to be able to update enumeration properties with external options and now have no way of knowing what to update on.

Thanks!

0 Upvotes
dharmesh
HubSpot Product Team
HubSpot Product Team

Enumeration property has no options

Did you get a resolution to this issue? 

I'm tinkering with enum properties in HubSpot as well, and curious as to what you heard back.

Thanks.

Co-founder/CTO, HubSpot