Php Infusionsoft-使用API向公司添加联系人
我正在使用novaksolution,并试图通过设置Php Infusionsoft-使用API向公司添加联系人,php,infusionsoft,Php,Infusionsoft,我正在使用novaksolution,并试图通过设置Company和CompanyID字段向公司添加联系人 所有其他字段都在更新,但CompanyID字段始终返回为0 例如: $contact = new Infusionsoft_Contact(1234); $contact->CompanyID = 5678; $contact->Company = 'Test Company Name'; // update other fields $contact->save();
Company
和CompanyID
字段向公司添加联系人
所有其他字段都在更新,但CompanyID
字段始终返回为0
例如:
$contact = new Infusionsoft_Contact(1234);
$contact->CompanyID = 5678;
$contact->Company = 'Test Company Name';
// update other fields
$contact->save();
// Shows CompanyID = 5678
var_dump($contact);
$contact = new Infusionsoft_Contact(1234);
// All other fields updated; CompanyID is 0
var_dump($contact);
我走错方向了吗?我遗漏了什么?好吧,我花了更长的时间才弄清楚 对于其他陷入此问题的人,您需要设置字段
AccountId
,而不是CompanyID