このコードPHPでSoap Enterprise API経由でSalesforceにアカウントを作成するにはどうすればいいですか?
$mySforceConnection = new SforceEnterpriseClient();
$mySforceConnection -> createConnection("soapclient/enterprise.wsdl.xml");
try {$mySforceConnection -> login(USERNAME, PASSWORD, SECURITY_TOKEN);}
catch (Exception $e) {echo "Connection not possible<br>";}
$record = new stdClass();
$record-> Name = 'test der API';
$record-> Website = 'www.test.de';
$response = $mySforceConnection -> create($record,'Account');
を使用してenterprise.wsdl
を使用してSOAP APIとSalesfoceでのアカウントの作成に問題があることを得たが、エラーメッセージが表示されました:
Notice: Undefined property: stdClass::$result in xyz on line 499
誰かが上助けることができますこの?おかげ
ベスト トーマス
使用しているPHPのバージョンは?この時点ではPHP 7と互換性がないようです。 – vladykx