【问题标题】:Infusionsoft - Adding a Contact to a Company using the APIInfusionsoft - 使用 API 向公司添加联系人
【发布时间】:2017-02-07 08:12:38
【问题描述】:

我正在使用 novaksolution 的Infusionsoft SDK 并尝试通过设置CompanyCompanyID 字段将联系人 添加到公司

所有其他字段都在正常更新,但 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);

我是不是走错了路?我错过了什么?

【问题讨论】:

    标签: php infusionsoft


    【解决方案1】:

    嗯,这花了我更长的时间才弄清楚。

    对于其他坚持这一点的人,您需要设置字段AccountId,而不是CompanyID

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-16
      • 2020-05-03
      • 1970-01-01
      • 1970-01-01
      • 2011-07-31
      相关资源
      最近更新 更多