I have enabled State and Country picklist feature and I am using this query in a web service class:
SELECT BillingStateCode FROM Account
But I am getting:
No such column 'BillingStateCode' on entity 'Account'.
I am using
BillingCountryCode fields in another class and there it works fine. If I try to execute above query in developer console, there too it works without error. Why does just this one class fail?