APIs & Integrations

AnzeKoprivec
Member

Properties API returns 0 options on Pipeline/Dealstage/Owner properties

SOLVE

Hitting the properties API on certain enumeration properties returns no options. I'm guessing it does these on all properties where the options are defined by HubSpot. So far I've been hit with this on the dealstage,pipeline, owner properties. Example Postman call:

 

{
    "updatedAt": "2023-08-11T16:42:34.454Z",
    "createdAt": "2020-06-30T15:57:38.180Z",
    "name": "dealstage",
    "label": "Deal Stage",
    "type": "enumeration",
    "fieldType": "radio",
    "description": "The stage of the deal. Deal stages allow you to categorize and track the progress of the deals that you are working on.",
    "groupName": "deal_activity",
    "options": [],
    "displayOrder": 3,
    "calculated": false,
    "externalOptions": true,
    "hasUniqueValue": false,
    "hidden": false,
    "hubspotDefined": true,
    "modificationMetadata": {
        "archivable": true,
        "readOnlyDefinition": true,
        "readOnlyOptions": false,
        "readOnlyValue": false
    },
    "formField": false
}

 



I know there would be a way to circumvent this by hitting the pipelines API but this just seems wrong and not sustainable. Is this a HubSpot error or how is this suppost to be handled. 

0 Upvotes
1 Accepted solution
GreyHamilton
Solution
Participant | Elite Partner
Participant | Elite Partner

Properties API returns 0 options on Pipeline/Dealstage/Owner properties

SOLVE

You happened to test 3 that are handled in different tables. Pipelines + Stages are in the Pipeline api like you mentioned and the Deal Owner is in the Owner api.

 

What exactly is your use case? 

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

View solution in original post

0 Upvotes
4 Replies 4
GreyHamilton
Solution
Participant | Elite Partner
Participant | Elite Partner

Properties API returns 0 options on Pipeline/Dealstage/Owner properties

SOLVE

You happened to test 3 that are handled in different tables. Pipelines + Stages are in the Pipeline api like you mentioned and the Deal Owner is in the Owner api.

 

What exactly is your use case? 

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
0 Upvotes
AnzeKoprivec
Member

Properties API returns 0 options on Pipeline/Dealstage/Owner properties

SOLVE

Aha so these are the only 3 properties I need to make extra switch cases for.

We're building an app that ties into workflows and heavily interacts with HubSpot properties so to not have user error we're using the externaldata option in the dropdown select where we'd like to present the possible dealstage/pipeline, owners, other properties.. for the user to select from so it doesn't return either a fieldType or fieldValue error

0 Upvotes
GreyHamilton
Participant | Elite Partner
Participant | Elite Partner

Properties API returns 0 options on Pipeline/Dealstage/Owner properties

SOLVE

Got it. Yeah those 3 and one you might encounter is Team which is in the Settings API | User Provisioning (hubspot.com) and Currency which has it's own Settings API | Currencies (hubspot.com).

 

If externalOptions:true in the response is the one that lets you know that the options are housed elsewhere. Here is the other radio type HubSpot properties with Team and Currency having that value as true and showing no options:

 

updatedAt:"2023-08-29T21:46:26.677Z"
createdAt:"2019-08-06T02:41:53.767Z"
name:"hubspot_team_id"
label:"HubSpot Team"
type:"enumeration"
fieldType:"select"
description:"The team of the owner of the deal."
groupName:"dealinformation"
options:
displayOrder:7
calculated:false
externalOptions:true
hasUniqueValue:false
hidden:false
hubspotDefined:true
archivable:true
readOnlyDefinition:true
readOnlyValue:true
formField:false
updatedAt:"2023-05-16T17:51:55.879Z"
createdAt:"2020-04-29T20:45:07.796Z"
name:"hs_manual_forecast_category"
label:"Forecast category"
type:"enumeration"
fieldType:"select"
description:"The likelihood a deal will close. This property is used for manual forecasting your deals."
groupName:"dealinformation"
label:"Not forecasted"
value:"OMIT"
description:""
displayOrder:1
hidden:false
label:"Pipeline"
value:"PIPELINE"
description:""
displayOrder:2
hidden:false
label:"Best case"
value:"BEST_CASE"
description:""
displayOrder:3
hidden:false
label:"Commit"
value:"COMMIT"
description:""
displayOrder:4
hidden:false
label:"Closed won"
value:"CLOSED"
description:""
displayOrder:5
hidden:false
displayOrder:-1
calculated:false
externalOptions:false
hasUniqueValue:false
hidden:false
hubspotDefined:true
archivable:true
readOnlyDefinition:true
readOnlyOptions:false
readOnlyValue:false
formField:false
updatedAt:"2023-08-11T16:42:34.454Z"
createdAt:"2019-08-06T02:41:53.275Z"
name:"deal_currency_code"
label:"Currency"
type:"enumeration"
fieldType:"select"
description:"Currency code for the deal."
groupName:"dealinformation"
options:
displayOrder:-1
calculated:false
externalOptions:true
hasUniqueValue:false
hidden:false
hubspotDefined:true
archivable:true
readOnlyDefinition:true
readOnlyValue:false
formField:false
updatedAt:"2023-06-20T22:34:28.356Z"
createdAt:"2019-08-06T02:41:53.038Z"
name:"hs_analytics_source"
label:"Original Source Type"
type:"enumeration"
fieldType:"select"
description:"Original source for the contact with the earliest activity for this deal."
groupName:"analyticsinformation"
label:"Organic Search"
value:"ORGANIC_SEARCH"
displayOrder:0
hidden:false
label:"Paid Search"
value:"PAID_SEARCH"
displayOrder:1
hidden:false
label:"Email Marketing"
value:"EMAIL_MARKETING"
displayOrder:2
hidden:false
label:"Organic Social"
value:"SOCIAL_MEDIA"
displayOrder:3
hidden:false
label:"Referrals"
value:"REFERRALS"
displayOrder:4
hidden:false
label:"Other Campaigns"
value:"OTHER_CAMPAIGNS"
displayOrder:5
hidden:false
label:"Direct Traffic"
value:"DIRECT_TRAFFIC"
displayOrder:6
hidden:false
label:"Offline Sources"
value:"OFFLINE"
displayOrder:7
hidden:false
label:"Paid Social"
value:"PAID_SOCIAL"
displayOrder:8
hidden:false
displayOrder:-1
calculated:false
externalOptions:false
hasUniqueValue:false
hidden:false
hubspotDefined:true
archivable:true
readOnlyDefinition:true
readOnlyOptions:true
readOnlyValue:false
formField:false
updatedAt:"2023-06-20T22:34:28.356Z"
createdAt:"2021-04-13T18:44:53.526Z"
name:"hs_priority"
label:"Priority"
type:"enumeration"
fieldType:"select"
description:""
groupName:"dealinformation"
label:"Low"
value:"low"
displayOrder:0
hidden:false
label:"Medium"
value:"medium"
displayOrder:1
hidden:false
label:"High"
value:"high"
displayOrder:2
hidden:false
displayOrder:-1
calculated:false
externalOptions:false
hasUniqueValue:false
hidden:false
hubspotDefined:true
archivable:true
readOnlyDefinition:true
readOnlyValue:false
formField:false
startedAt:"2024-01-17T14:03:54.738Z"
completedAt:"2024-01-17T14:03:54.744Z"

 

 

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
0 Upvotes
AnzeKoprivec
Member

Properties API returns 0 options on Pipeline/Dealstage/Owner properties

SOLVE

Ok thanks for this, I guess I'll have to hardcode those 5 switch statements than in this case. If any more pop up we'll see with user testing

0 Upvotes