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
Robin GrayRobin Gray 

JavaScript button conversion for Lightning

 I converted and deployed my JavaScript buttons to Lightning prior to previewing them and copying the code is there a way to delete the JavaScript buttons that were deployed and convert them again?

I also deleted the Clone as LEAD that was deployed in Lightning is there a way to get it back?
Deepali KulshresthaDeepali Kulshrestha
Hi Robin,

The Lightning Experience Configuration Converter recreates your org’s JavaScript buttons as Lightning components, quick actions, or other solutions — all without touching your original buttons. Before committing to any changes, you can preview the new component code or declarative steps and verify that the alternatives work as expected.
Please refer to the following link as they may be helpful in solving your problem:
https://developer.salesforce.com/blogs/2018/06/convert-javascript-buttons-to-lightning-friendly-alternatives-with-the-lightning-experience-configuration-converter.html
https://help.salesforce.com/articleView?id=lcc_javascript_buttons_overview.htm&type=5

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha