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

Insufficient access to button that is on detail page

I created a button on detail page. I have access to that button (since i'm an admin). However, when I logged in as a different user whose profile is ABC, It throws an alert 'Insufficient access'.   FYI,  it's a java script button which calls an apex class.

Could you please help me how to figure it out?  Thanks
Solution :   I enabled the apex class access to the profile. Now it works fine.