I want to know LastName and PersonEmail from account. So I made sql like this:
[SELECT AccountNumber, LastName, PersonEmail, Phone, BillingPostalCode FROM Account]
But it doesn't work properly and errors.
No such column 'LastName' on entity 'Account'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. How can I get LastName from Account Object?