When I tried to add territories field in soql
list<Account> soql=[select id,name,Rating,Territories from account Where ownerid!=:UserInfo.getUserId()];
I ma getting following error.
No such column
'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. at line 8 column 29
I could see the Territories field and when I try to get the values error coming.
What is the steps that I need to do..