APIs & Integrations

Axl-ArrasDev
Membro

Deals with deal owner information and contacts

resolver

I'm currently trying this endpoint: /crm/v3/objects/deals/search
to get the information of specific deal.

Is it possible to return the associated owner email other than the owner id?

This is my request body

{
    "limit": 1,
    "properties": [
        "name_of_the_clients",
        "hubspot_owner_id",
        "name_of_the_real_estate_sold",
        "hs_analytics_latest_source_data_2_contact"
    ],
    "associations": {
        "contacts": {} 
    },
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "closedate",
                    "operator": "HAS_PROPERTY"
                },
                {
                    "propertyName": "dealstage",
                    "operator": "EQ",
                    "value": "contractsent"
                }
            ]
        }
    ],
    "sorts": [
        {
            "propertyName": "createdate",
            "direction": "DESCENDING"
        }
    ]
}

 

0 Avaliação positiva
1 Solução aceita
coldrickjack
Solução
Orientador(a)

Deals with deal owner information and contacts

resolver

Hey @Axl-ArrasDev,

 

Unfortunately not. You'll need to make an additional request to GET /crm/v3/owners/{ownerId} to pull the email (and other information if needed i.e first and last name).  See Owners API for more information.

 

I believe the reason for this is how the "Deal Owner" property (or any owner property for that matter) works in HubSpot. It is storing the owner ID behind the scenes. 

Exibir solução no post original

0 Avaliação positiva
2 Respostas 2
coldrickjack
Solução
Orientador(a)

Deals with deal owner information and contacts

resolver

Hey @Axl-ArrasDev,

 

Unfortunately not. You'll need to make an additional request to GET /crm/v3/owners/{ownerId} to pull the email (and other information if needed i.e first and last name).  See Owners API for more information.

 

I believe the reason for this is how the "Deal Owner" property (or any owner property for that matter) works in HubSpot. It is storing the owner ID behind the scenes. 

0 Avaliação positiva
Axl-ArrasDev
Membro

Deals with deal owner information and contacts

resolver

Oh, I wanted to make less request as possibile 😞

Thanks btw 🙂 

0 Avaliação positiva