+ Start a Discussion
ken_devken_dev 

JavaScript - OnClick- Web Service sforce

I am receiving a message "No Access allowed to this class" when trying to call a web service for a Custom Button Javascript onClick.
This only occurs when the user is NOT an administrator. Is there a permission that needs to be set to allow this functionality?
SuperfellSuperfell
Yes, the admin can control which user profiles have access to which Apex classes, and those restrictions apply to apex classes that are exposing web services as well.
TryCodingTryCoding

Can you Please tell me how did you call web service method on click javascript button.

I am to do the same thing.