Wednesday, May 29, 2013

If you’ve ever come across the following error in a SOQL statement in Salesforce:
Save error: only aggregate expressions use field aliasing, Force.com save problem
The issue is that you forgot a comma in your SOQL query! Indeed this will throw that error
SELECT
  Name
  Id
FROM
  Account
whereas this will not
SELECT
  Name,
  Id
FROM
  Account

No comments:

Post a Comment