0

I have a Lightning Component button that calls some Apex methods. The same methods are called in classic by a standard button.

In classic, both administrators and regular users are able to use the button and its called methods.

In LEX, I as administrator can use the LC button, but when regular users attempt to use the LC button the process simply hangs with the six-dot spinner showing on the screen. It will stay there until the pop-up is cancelled or Accept is pressed.

It looks like a permissions issue, but I cannot find anywhere where the user profile is not set properly.

Can anyone point me to a fix for this? Or how to take the troubleshooting process further?

Thanks.

Bryan Hunt

3
  • 1
    Is the Apex controller that is referenced in the LC accessible to the user profiles?
    – Christoph
    Commented Nov 16, 2020 at 13:58
  • Are you aware of this critical update? admin.salesforce.com/blog/2020/… Commented Nov 16, 2020 at 15:48
  • The Class that contains the Apex @AuraEnabled methods is in the Enabled Apex Class Access list, so that does not appear to be the issue.
    – Bryan Hunt
    Commented Nov 16, 2020 at 17:27

1 Answer 1

0

It took some digging, but I was able to solve this issue.

The LC buttons were converted JavaScript buttons from Salesforce classic. That conversion process generates some LC helper classes during the conversion process. Apparently the process added the helper classes to the System Administrator profile automatically. Once I added the helper classes to the Enabled Apex Class Access list for each of the user profiles, all worked perfectly.

Thanks for the responses.

Bryan Hunt

You must log in to answer this question.

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