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
shankoshanko 

Adding customized buttons to Lead Detail using Apex

Is there any programmatic way to add customized buttons to the standard Lead detail page using Apex?

 

I can do it manually (Setup > Customize > Leads > Buttons & Links and then ... Leads > Page Layouts). But that makes it inconvenient if I want to package my code as an AppExchange app.

 

Any hints will be highly appreciated.

 

Thanks,

- Shashank