Associate contact 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 association parameters

1
deal_id = '3452242690'
2
contact_id = '245201'
Copied!

Model

Create association

1
hubspot.connect(HS_API_KEY).associations.create("deal",
2
deal_id,
3
"contact",
4
contact_id)
Copied!

Output

Display result

1
print("🙌 Association successfully created !")
Copied!
Copy link
Edit on GitHub