I am new to the PHP Toolkit and I am trying to understand where I can find standard objects/records that I have created using the following code in a php file downloaded from the PHP Toolkit sample code:
$sObject = new stdclass();
$sObject->FirstName = 'Smith';
$sObject->LastName = 'John';
$sObject->Phone = '510-555-5555';
$sObject->BirthDate = '1927-01-25';
$sObject2 = new stdclass();
$sObject2->FirstName = 'Mary';
$sObject2->LastName = 'Smith';
$sObject2->Phone = '510-486-9969';
$sObject2->BirthDate = '1957-01-25';
echo "**** Creating the following:\r\n";
$createResponse = $mySforceConnection->create(array($sObject, $sObject2), 'Contact');
$ids = array();
foreach ($createResponse as $createResult) {
print_r($createResult);
array_push($ids, $createResult->id);
}
I want to log onto Salesforce.com and see these records that I've created here. Is that even possible? I have also tried using the defineGlobal() method but I don't understand what I'm printing to the console when I do that.
Any help is greatly appreciated!
edit: here is what the console prints when I run the above code:
**** Creating the following:
stdClass Object
(
[id] => 00337000003X5ISAA0
[success] => 1
)
stdClass Object
(
[id] => 00337000003X5ITAA0
[success] => 1
)
print_r
result also. Assuming that it won't show like[Object object]