+ 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