You need to sign in to do that
Don't have an account?
![Smileonl Smileonl](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
SUM() Error...
Hi, I have an error when trying to use SUM() in a query.
Request:
SELECT SUM(Amount) FROM Opportunity
Error:
Warning (2) - Invalid argument supplied for foreach() in /var/www/dev.local/system/libraries/salesforce/SforcePartnerClient.php on line 344
yes aggregate functions are not supported by php API. You can either create a roll-up summary field which will give you sum of necessary field or use other API like RestAPI.