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
apexdevSunilapexdevSunil 

SOSL query permissions

Hi

 

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.