0

The goal is to first check if we have access to that apex class or not, if access is available then only make an apex call. I have come across Check Permissions but this doesn't state an check for an apex class. May anyone please suggest something? We have to check the access level for an apex class in JS without making an apex call.

1 Answer 1

2

The "without a server call" is impossible, sadly. Your choices are to either make a server call to query the SetupEntityAccess object to see if the user has permission, or make the API call directly and examine the error you get back.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .