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
Raquel RiemerRaquel Riemer 

Converting a JAVA button for lightning

the converter tool is not deploying, it gets stuck on metadata, so I need to convert my java button myself.. I see it has a component and a controller piece. I am not fully confident that i will do this correctly

 

Should I simply go to sandbox, developer console and paste the controller code? 

Then how do you create the new component?

SwethaSwetha (Salesforce Developers) 
HI Raquel,
Steps of creating a lighting Component https://trailhead.salesforce.com/en/content/learn/projects/build-reusable-lightning-components/create-a-component-to-use-in-the-lightning-app-builder

Recommend reviewing below content
Converting JavaScript Buttons and Links to Lightning Experience Alternatives
https://help.salesforce.com/s/articleView?id=sf.lcc_javascript_buttons_overview.htm&type=5

https://trailhead.salesforce.com/en/content/learn/modules/lex_javascript_button_migration

https://www.bayforce.com/wp-content/uploads/2017/10/Bayforce-JavaScript-Lightning-Experience-White-Paper.pdf

If this information helps, please mark the answer as best. Thank you