APIs & Integrations

Axl-ArrasDev
Membre

Deals with deal owner information and contacts

Résolue

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 Votes
1 Solution acceptée
coldrickjack
Solution
Guide

Deals with deal owner information and contacts

Résolue

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. 

Voir la solution dans l'envoi d'origine

0 Votes
2 Réponses
coldrickjack
Solution
Guide

Deals with deal owner information and contacts

Résolue

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 Votes
Axl-ArrasDev
Membre

Deals with deal owner information and contacts

Résolue

Oh, I wanted to make less request as possibile 😞

Thanks btw 🙂 

0 Votes