Nevermind, figured it out in the end. For those interested:
PHP Code:
try {
$client = new SforcePartnerClient();
$client->createConnection($wsdl_src);
$loginResult = $client->login($userName_src, $password_src);
$query = "Select i.Workshop_Title__c, i.Town__c, i.SystemModstamp, i.Start_Date__c, i.Salutation__c, i.SQ__c, i.Person__c, i.OwnerId, i.Outing_ref__c, i.Name, i.Last_name__c, i.LastModifiedDate, i.LastModifiedById, i.Job_title__c, i.IsDeleted, i.Id, i.First_name__c, i.Email__c, i.CreatedDate, i.CreatedById, i.Country__c, i.Company__c, i.Company_SQ__c, i.Account__c From Inco_Pax__c i";
$records = get_records($client,$query);
if ($records)
{
echo '<p>There are currently ' . count($records) . ' inco participants defined.<br><br>';
foreach ($records as $record){
$sObject = new stdclass($record);
$First_name__c = $record->fields->First_name__c;
$Last_name__c = $record->fields->Last_name__c;
$Email__c = $record->fields->Email__c;
$Outing_ref__c = $record->fields->Outing_ref__c;
$Account__c = $record->fields->Account__c;
echo "First name: $First_name__c<br />";
echo "Last name: $Last_name__c<br />";
echo "Email address: $Email__c<br />";
echo "Outing: $Outing_ref__c<br />";
echo "Account: $Account__c<br /><hr size='1'><br />";
}
}
} catch (Exception $e) {
print_r($client->getLastRequest());
echo $e->faultstring;
}
All the posts in this forum have been of great help!
Vincent
Bookmarks