I am trying using SOAP API with phptoolkit. while trying to query all the order fields I only get standard fields, my order object contains some other fields create due installation of managed package.these fields are not returned and a error is thrown?
How to fix this?
For code sinppet: here it is:
<?php
define("USERNAME", "abhilas[email protected]");
define("PASSWORD", "dCEm96uPgRHJ");
define("SECURITY_TOKEN", "AdTdD3hPtVYr1RNbt6re4OnqO");
require_once ("Force.com-Toolkit-for-PHP-master/soapclient/SforceEnterpriseClient.php");
$mySforceConnection = new SforceEnterpriseClient();
$mySforceConnection->createConnection("Force.com-Toolkit-for-PHP-master/soapclient/enterprise27.wsdl");
$response=$mySforceConnection->login(USERNAME, PASSWORD.SECURITY_TOKEN);
echo "<pre>";
print_r($mySforceConnection->query("select id,ordernumber from order"));
echo "</pre>";
?>
I tried it using WSDL 27.0 available with php toolkit. I returned only ID But gives no error for managed fields.
using latest wsdl of my org. 36.0 it gives error
Here is the snapshot of output https://qas-shared-assets.s3.amazonaws.com/snaps/4uz5infz2gldi