You need to sign in to do that
Don't have an account?

Invoking Apex Class from Custom Buttons - Lightning/Classic
HI All,
The salesforce org which I'm working on right now is currently using Classic. They want a custom button to invoke an apex class - which sits on the page layout.
I believe the best practice is to create a custom button which directs to a VisualForce page, behind the scenes, to invoke an apex class. Is this still the best way to go, if the client is going to move to lightning soon?
Thanks
The salesforce org which I'm working on right now is currently using Classic. They want a custom button to invoke an apex class - which sits on the page layout.
I believe the best practice is to create a custom button which directs to a VisualForce page, behind the scenes, to invoke an apex class. Is this still the best way to go, if the client is going to move to lightning soon?
Thanks
As you have a plans to migrate to Lightning so define the lightning component and call the Lightning component from the VF page by using lightning out.
In case if you move the lightning in the feature you have already lightning component which you can call it on lightning actions.