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
ScottPJScottPJ 

Javascript Error : No Service Available for Class testClick

When I attempt to run the follow Javascript (from a button), I receive the error 'No Service Available for Class testClick'. 

 

{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")}

var inputStatus = 1;

// Now make a synchronous call to the Apex Web service method
 var result = sforce.apex.execute("testClick", "test", {status : inputStatus });

 

 

The Apex class:

 

global class clickTest {

    WebService static Boolean test(integer status)
    {
       return true;

    }
}

 

Does anybody have any suggestions to resolve this issue?

 

Thanks.

 

werewolfwerewolf
Your Apex class is called clickTest.  You are calling testClick.  Compare and contrast.