dongwang6837 2012-10-01 14:13
浏览 116

令人困惑的SalesForce错误

I'm using the SalesForce PHP Toolkit and getting a connection just fine. But when I use any of the example code - see here

INVALID_FIELD: No such column '' on entity 'Contact'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

I might just be struggling to find the answer because Google won't let me search for ''

The environment is CentOS 6 with PHP 5.3.

  • 写回答

1条回答 默认 最新

  • doumu4032 2012-11-30 01:09
    关注

    I just created an account here to answer this question. It took me all day long to find out this bug in PHP Toolkit. The problem is caused by the "fieldsToNull" property. I read an approx. solution here that gave me an idea where to look for the solution.

    So a correct example would be:

     $fields = array('LastName' => 'Doe');
     $sObject = new SObject();
     $sObject->fields = $fields;
     $sObject->fieldsToNull = NULL;//this is the solution! :)      
     $sObject->type = 'Contact';
    

    Then, proceed as usual with the remaining part of the examples of the PHP Toolkit. It worked fine with my Partner WSDL+Developer SF Account.

    Hope it helps!

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作