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
Shivani Desai 19Shivani Desai 19 

Can aura enabled classes be called initiated from Salesforce classic? I have a JavaScript button that is calling a class and this button has been converted to lightning component.

My Lightning component and javascript button will be accessing the same Apex class. Would like to add the @Aura enabled notation to the class to make it lightning compatible but not sure if the class can be accessed in Lightning after that. 
I have users in both interfaces that need to access the same functionality across board.
 
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
@auraenabled annotated classes can be used in both lightning and classic.It doesnt effect anything even though it is aura enabled when you use in classic.This is used just to expose the classes to lightning components.But you can still use the same class in classic.

Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.

Thanks and Regards