You need to sign in to do that
Don't have an account?
Peter Kaye
Loading a table record count into a php variable.
I am struggling with SOQL code with the php toolkit to retrieve the total number of records in a custom object table. I have copied the apporach which is working for an ordinary SELECT query which retrieves multiple records.
Here is is the code that fails to fill the variable $numRecs
What have I got wrong ? Thanks.
Here is is the code that fails to fill the variable $numRecs
$query = "SELECT COUNT() FROM Service3__c"; $response = $mySforceConnection->query($query); foreach ($response->records as $record) { $numRecs = $record->Count(); } echo $numRecs;
What have I got wrong ? Thanks.
Try below code.
And also I have seen like
Hope this helps you!
Please mark it as solved if this helps you so that it will make available for other as a proper solution.
Thanks and Regards
Sandhya
All Answers
Try below code.
And also I have seen like
Hope this helps you!
Please mark it as solved if this helps you so that it will make available for other as a proper solution.
Thanks and Regards
Sandhya