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

Call Apex Class method from Lightining Quick Action
Hi,
I have an apex class method already written which gets called by a button in background,
I want a button on Accounts screen, which can call that lightning component and inturn the apex method.
So, I want a button on Accounts screen, which calls a component that calls the method written in Apex class.
Since the method makes the API call, do I need to write some extra code? Since the functionality for API is already written.
You can create a lightning action, can call a lightning component and then on doInIt handler of that lightning component you can call apex method.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/controllers_server_actions_call.htm
Refer this link to pass parameters in an apex class.