<script src="/soap/ajax/37.0/connection.js"> </script >
<script src="/soap/ajax/37.0/apex.js"> </script >
function success() {
var alertString="Success!";
alert(alertString);
}
sforce.connection.sessionId = "{!$Api.Session_ID}";
sforce.apex.execute("ChangeLogTriggerHandler", "UpdateOfSameObject","UpdateOnAnotherObject", {recordId :{!Change_Log__c.Id} " }, { onSuccess: success, onFailure: error });
How to Call two methods of handler class in Custom button scripting
In the above i am Used Class name as ChangeLogTriggerHandler
method1 : UpdateofsameObject
method2 : UpdateofAnotherObject
but its not workinng
sforce.apex.execute("myClass","makeContact", {firstParam:"firstParamValue", SecondParam:"SecondaParamValue"});this way you can pass multiple parameters