Pregunta

So far, this query works fine SELECT * FROM Contact, which retrieves all contacts from the Contact object, but now I'm trying to fetch data from Education__c, so I tried SELECT * FROM Education__c. This is what I have:

$query = "SELECT * FROM Education__c";
$response = $mySforceConnection->query($query);
foreach($response->records as $record){
        echo ($record->fields->School_Name__c);

But this doesn't work. So I guess I'm doing something wrong with the response->records but I don't know.

¿Fue útil?

Solución

SOQL doesn't like wildcards SOQL. Try specifying the fields you want to retrieve. Also, does it give you any errors?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top