+ Start a Discussion
OnkiOnki 

SOSL Error

 Hi I am trying to excute this SOSLbutit will give error.

 

       String searchquery='FIND \'KS*\' IN billingstate  FIELDS RETURNING Account(id,Name,billingstate)';
       List<List<SObject>> searchList=search.query(searchquery);
     
        Accounts  = ((List<Account>)searchList[0]);

 

ERROR : 

 

System.Exception: Invalid IN fields group: billingstate

Class.customSearchcls.Search1: line 23, column 39 External entry point

 

But its working fine with Name.

 

Suzan2009Suzan2009

hi, I got same problem.

 

Any achievement?