View Single Post
  #7  
Old 03-28-2008, 12:12 PM
mramsey mramsey is offline
Junior Member
 
Join Date: Mar 2008
Posts: 12

Ok making a little more progress.. i've created a new script:

PHP Code:
require_once ('soapclient/SforceEnterpriseClient.php');
$mySforceConnection = new SforceEnterpriseClient();
$mySoapClient $mySforceConnection->createConnection("enterprise.wsdl.xml");
$mylogin $mySforceConnection->login("user@domain.com""password");
$query "SELECT ID, Name from Account where Client_Id__c='xxxxxx'";
$queryResult $mySforceConnection->query(($query));
$records $queryResult->records;
foreach(
$records as $record) {
$sObject = new SObject($record);
$name=$sObject->fields->Name;
$creditorid=$sObject->Id;
echo 
"Name: $name<br />";
echo 
"ID: $creditorid<br />";

with this though i'm getting:

PHP Fatal error: Class 'SObject' not found in /var/www/html/sf/test.php on line 15

any thoughts?

Sorry for being such a pain...

-Mike
Reply With Quote