+ Start a Discussion
Binh NgocBinh Ngoc 

Salesforce API with PHP

I currently use Salesforce PHP API. When querying Salesforce using SOQL, the return object doesnt have consistent structure if I query nested object. There are two types of returned obj:


1. SObject Object ( [type] => Opportunity [fields] => stdClass Object ( [Name] =>  [0] => SObject Object ( [type] => Account [fields] => [Id] =>  ) )


2. sobjects(...)


I am confused about why there is two type of returned object. Anyone would help?


- Ngoc


What is your query?