{!REQUIRESCRIPT("/resource/1468830130000/ConnectionJsNoAgent")}
{!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")}
var result = sforce.apex.execute("SendSms","callSendWSrvId", "{id'{!CKSW_BASE__Service__c.Id}'}");
alert('result ');
window.location.reload();
I keep getting errors and no matter what i do i cant seem to get it to work. I tried it with a @future @remoteAction and standard methods.
@future (callout = true)
public static void sendWSrvId(String Id) {
//logic
}
Update: Forgot to mention I' using this in a custom button.