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
someonesomeone 

javascript function sforce.interaction.runApex fails

sforce.interaction.runApex('Search', 'query', 'SELECT FirstName, LastName FROM Contact', function(response){
    console.log(response.result);
});
I'm trying to run the above javascript command for executing methods on Apex system classes: using class Search, calling method query, with the passed query statement, but I get the following error: Could not load Apex class: Search

I was able to call UserInfo.getUserName in a similar fashion without any issues. Not sure why the search class is not found. Any ideas? 

This is the api doc I am using: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_search.htm#apex_System_Search_query