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
SF DakshendraSF Dakshendra 

In Account object When i click on custom button "Generate Students" an email goes to given email id in account.How can i get that?

User-added image
Hi
In Account object When i click on custom button "Generate Students" an email goes to given email id in account.How can i get that
Thanks
nagalakshminagalakshmi
Hi,

Get the Account record id in to your apex class using apexpages.currentpage().getparameters().get('id') tag. Using record id query the account email address. Using single email message code to send the email to this account email id.

Thanks,
Lakshmi