function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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] =>  ) )

or

2. sobjects(...)

 

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

 

- Ngoc

ktshannonktshannon

What is your query?