Is there any way to get the external options for properties with externalOptions flag as true?
Example:
Property dealstage
URL:https://api.hubapi.com/crm/v3/properties/deal/dealstage?properties=name,externalOptions,options
For the integration i am building i need the options for this field.
Hi, @FLeon. Thanks for reaching out. To confirm, your goal is to get the values for dealstage? For a specific pipeline? Is that correct?
One suggestion — have you tried the Return all stages of a pipeline endpoint? GET/crm/v3/pipelines/{objectType}/{pipelineId}/stages
If you need to get your Pipeline IDs, you can use this endpoint — Retrieve all pipelines. GET/crm/v3/pipelines/{objectType}``
You can find the pipelineId, and the internal value for specific stages, in-app via Settings > Object > Deals > Pipelines
If this is not what you are after, let the community know and we’ll do our best to help.
Best,
Jaycee
Hi @Jaycee_Lewis thi is very helpful but i am looking for a more generic endpoint. When i retrieve properties for Deal Object i see that some of them have externalOptions as true so the options list is empty, i need to retrieve the options for all of them. I used deal stage as an example but there are others in which i have the same requirement
Is there a way to fetch all external Options? i have been checking in Hubspot console and i found this request but it seems to work only if it is called from Hubspot Frontend.
I would need something like that in the API. Does that exist? is there a way to achieve that using API endpoints?
Thanks a lot for your response!
Unfortunately, this isn’t possible in the public API. I’m hoping HubSpot will add this because it’s very difficult to work with enumeration properties otherwise.
Hi SBussey! I’m running into this problem as well. What solutions have you used so far to work around the api’s limitations? I’m hoping there’s a workaround of some sort, I’m lost as to if there’s even any sort of way I could manually find out the names of property options so that I could add them to my db and update those options programatically in the future?
There’s no API that can do it. I submitted it as an idea, but no workaround today.
You can piece together certain fields like user ID or pipeline stages by manually querying and piecing together what the correct options should be. But there’s no single API to do it, and some fields have values that can’t be queried in any way.
Hello @Jaycee_Lewis I know this is an older post but wanted to follow up on if there has been any work around or if there is now any way to fetch external options using the API?
Also is there any easy way to work with properties with enumerated values (i.e reading and updating values for enumerated fields as currently we have to somehow pull the internal id/value for each option.
I’m currently using the python SDK and am utilizing the get_all function to get all contacts properties and their values:
api_client.crm.properties.core_api.get_all(object_type=‘contacts’)
Unfortunately as has already been stated any of the properties with external_options as true returns an empty options list.
Any follow up or help is much appreciated, thanks in advance!