Hi.
Im creating one task in PHP and I need to setup an associtaion with a company using V3 CRM connection.
There is no problem with the task but the association was not stablished. I use this data for create.
Where I could find a definition to know wich is de code that I need for “copany” in “associationTypeId” field.
Thanks
$simplePublicObjectInputForCreate = [
'properties' => [
"hs_timestamp" => $date,
"hs_task_body" => $cuerpo,
"hubspot_owner_id" => $owner,
"hs_task_subject" => $titulo,
"hs_task_status" => "WAITING",
"hs_task_priority" => "HIGH"
],
'asociations' => [
"to" => [
"id" => $company,
"types" => [
"associationCategory" => "HUBSPOT_DEFINED",
"associationTypeId" => 2
]
]
]
];