Have successfully added contacts and activities to my account using the api but cannot seem to create companies. The documentation dosen’t seem to be complete and there are no examples available to show how to create a company.
this is my code
$companyData = array(
‘name’ => $businessname,
);
$company = $solve360Service->addCompany($companyData);
if(isset($company->errors))
{
// Mail yourself if errors occur
mail(
USER,
‘Error while adding contact to Solve360’,
‘Error: ‘ . $company->errors->asXml()
);
}
Any clues as to what i’m doing wrong? Thanks in advance.
