APIs & Integrations

Axl-ArrasDev
Mitglied

Deals with deal owner information and contacts

lösung

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 Akzeptierte Lösung
coldrickjack
Lösung
Ratgeber/-in

Deals with deal owner information and contacts

lösung

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. 

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
2 Antworten
coldrickjack
Lösung
Ratgeber/-in

Deals with deal owner information and contacts

lösung

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
Mitglied

Deals with deal owner information and contacts

lösung

Oh, I wanted to make less request as possibile 😞

Thanks btw 🙂 

0 Upvotes