Get contact/deal/ticket/note/task/call owner first name and last name as property?

We use HubSpot api to retrieve all of the entities mentioned in the subject. Mainly now we use the V3 api search endpoint but, if anything, we can change it.

While it is possible to retrieve onwerId and then find all the required information about owner through owner API, this is neither efficient nor fast. Is there a way to retrieve these two fields (firstName and lastName) for these objects and engagements immediately with one request? Maybe you have some kind of “query” endpoint where we could specify some joins?

@SView

The simple answer is presently no.

We are adding graphql functionality to the CMS so it is not hard to imagine that this functionality may be extended

@Teun , any thoughts here?

Hi @dennisedson and @SView ,

I am pretty sure this is already possible if you join the beta. This part describes how you can use GraphQL from custom coded actions or an integration.

However, if you use the search API, couldn’t you use the ‘ownername’ property to retrieve the name of the owner?

Example query using GraphQL:

query MyQuery {
 CRM {
 contact(uniqueIdentifier: "id", uniqueIdentifierValue: "51") {
 firstname
 lastname
 ownername
 owneremail
 associations {
 ticket_collection__general {
 items {
 content
 }
 }
 deal_collection__general {
 items {
 hubspot_owner_id
 }
 }
 }
 }
 }
}

Such property (ownername) (or similar) does not seem to exist. I checked with /properties/v2/{contacts,tickets etc.}/properties

Edit: clarified what property I meant

Hi @SView ,

It is available in GraphQL for the Contact object. So GraphQL might be your best approach.