function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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?