+ Start a Discussion

SOSL query permissions



I am trying to execute  SOQL and SOSL querys from an Apex class.

When I run the querys for SOQL it gives the result but for SOSL it gives me a message SOSL query with resulting 0 rows in the Apex Debug Log.


When I run the same query using Force.com API from Java I am able to search for the opportunity and I got the values of the selecting columns as well.


Do I require any permissions to execute an SOSL query, please let me know.


Also please give me an Apex code sample which searches for an opportunity using SOSL


This is quite urgent please help me on this ASAP.