You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. This is a fantastic wrapper, so thank you. I am, however, trying to create a deal and associate it with a contact and company, but your deal model doesn’t allow me to add contact and company long[] arrays and assign them to the Associations property. Any assistance you could provide would be appreciated.
The text was updated successfully, but these errors were encountered:
You should be able to associate a contact (or company) like this:
/** * Initialize the API with your API Key * You can find or generate this under Integrations -> HubSpot API key */varapi=new HubSpotApi("demo");/** * Create a contact */varcontact= api.Contact.Create(new ContactHubSpotModel(){Email="john11@squaredup.com",FirstName="John",LastName="Smith",Phone="00000 000000",Company="Squared Up Ltd."});/** * Create a deal */vardeal= api.Deal.Create(new DealHubSpotModel(){Amount=10000,Name="New Deal #1",Associations={AssociatedContacts=new[]{ contact.Id.Value }}//associate here!});
Hi. This is a fantastic wrapper, so thank you. I am, however, trying to create a deal and associate it with a contact and company, but your deal model doesn’t allow me to add contact and company long[] arrays and assign them to the Associations property. Any assistance you could provide would be appreciated.
The text was updated successfully, but these errors were encountered: