You need to sign in to do that
Don't have an account?
biginthe50s
No service available for class... Error when installed as unmanaged (private listing) package
I have some JavaScript (on a custom button) that calls a webservice method. This works fine in my DEV edition instance, but I get an error when the code is executed in an Enterprise edition instance. The error is 'No service available for class 'SWRequestProcess.SWProcessRequestHelper''.
The code has been installed as part of an unmanaged (private listing) package so I have prefixed the classname with the package name but this still does not work.
Can anyone advise what the problem is?
This is the javascript:
{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} var result = sforce.apex.execute( "SWRequestProcess/SWProcessRequestHelper", // class "updateStatus", // method {vStatus:"Initial Request - Submitted", vName:"aaa" } );
This is the apex class:
global class SWProcessRequestHelper{ WebService static void updateStatus(String vStatus,String vName){ System.debug('updateStatus for vName [' + vName + '], vStatus [' + vStatus + '].'); SW_Process_Request__c request = [Select Name, Status__c from SW_Process_Request__c where Name = :vName]; request.LastStatus__c = request.Status__c; request.Status__c = vStatus; update request; } }
If your pacakge is really unmanaged, then it doesn't have a prefix/package name
All Answers
If your pacakge is really unmanaged, then it doesn't have a prefix/package name
Hello,
I am getting the same error on a button that calls a web service, but I am using change sets to go from my Sandbox to my testing Org, any idea what my problem might be?
Thank you!