Get contacts associated to deal
Tags: #hubspot #crm #sales #deal #contact #naas_drivers
Author: Florent Ravenel

Input

Import library

1
from naas_drivers import hubspot
Copied!

Setup your HubSpot

👉 Access your HubSpot API key
1
HS_API_KEY = 'YOUR_HUBSPOT_API_KEY'
Copied!

Enter deal ID

1
deal_id = '3452242690'
Copied!

Model

Get association

1
result = hubspot.connect(HS_API_KEY).associations.get('deal',
2
deal_id,
3
'contact')
Copied!

Output

Display result

1
result
Copied!
Copy link
Edit on GitHub