You need to sign in to do that
Don't have an account?
someone
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
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