Hello,
I want to fetch available contact owner options for creating new contact using API.
I have tried this code
const res = await hubspotClient.crm.properties.coreApi.getByName('contacts','hubspot_owner_id')
And receiving empty options field.
Property {
updatedAt: 2023-01-10T23:43:41.247Z,
createdAt: 2020-06-30T15:57:36.383Z,
name: 'hubspot_owner_id',
label: 'Contact owner',
type: 'enumeration',
fieldType: 'select',
description: 'The owner of a contact. This can be any HubSpot user or Salesforce integration user, and can be set manually or via Workflows.',
groupName: 'sales_properties',
options: [],
referencedObjectType: 'OWNER',
displayOrder: 6,
calculated: false,
externalOptions: true,
hasUniqueValue: false,
hidden: false,
hubspotDefined: true,
modificationMetadata: PropertyModificationMetadata {
archivable: true,
readOnlyDefinition: true,
readOnlyValue: false
},
formField: false
}
Is there any way to fetch available user list for assigning Contact Owner?