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
Vamsi TestPlpVamsi TestPlp 

I want to create a new custom button - Grant Access to Parent Account - and call a Lightning Component in it. The apex controller of the Lightning component should add the current user to the Account team of the Parent account of the current account

Sales Force Lightning 
MagulanDuraipandianMagulanDuraipandian
Check this link for quick action - http://www.infallibletechie.com/2018/03/forcehasrecordid-in-custom-lightning.html
Pass the record id from JavaScript to Salesforce apex class. Find the parent account and add the Account Team. Sample code similar  to it - http://www.infallibletechie.com/2018/03/lightningdatatable-in-salesforce.html
In the above example, I was extracting data. But, you can call a method which builds the account team.