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
Alejandro Gonzalez 18Alejandro Gonzalez 18 

How to create Custom Action For a detail layout page?

I want to create a Custom Action Button for the Account Detail Page.
A button that once is clicked, it executes some Apex code, and finally sends an email.

What would be the way of achieving this?
 
LBKLBK
hi Alejandro,

There are couple of ways to achieve this.

Easiest way is to add a javascript button.

Please refer the link below for a sample code.

http://salesforce.stackexchange.com/questions/78789/custom-button-to-send-an-email-using-email-template

Hope this helps.