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

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?
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.

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

I am to do the same thing.