APIs & Integrations

Axl-ArrasDev
Miembro

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 Me gusta
1 Soluciones aceptada
coldrickjack
Solución
Guí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. 

Ver la solución en mensaje original publicado

0 Me gusta
2 Respuestas 2
coldrickjack
Solución
Guí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 Me gusta
Axl-ArrasDev
Miembro

Deals with deal owner information and contacts

resolver

Oh, I wanted to make less request as possibile 😞

Thanks btw 🙂 

0 Me gusta