APIs & Integrations

Axl-ArrasDev
Member

Deals with deal owner information and contacts

SOLVE

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 Upvotes
1 Accepted solution
coldrickjack
Solution
Guide

Deals with deal owner information and contacts

SOLVE

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. 

View solution in original post

0 Upvotes
2 Replies 2
coldrickjack
Solution
Guide

Deals with deal owner information and contacts

SOLVE

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 Upvotes
Axl-ArrasDev
Member

Deals with deal owner information and contacts

SOLVE

Oh, I wanted to make less request as possibile 😞

Thanks btw 🙂 

0 Upvotes