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
Sangeetha EmpoweredSangeetha Empowered 

*IMPORTANT* --- Send Email button with onclick javascript is not working in lightning - Classic to Lightning Migration

Hi All
Urgent pls help

I have a custom button with onlick javascript to send an email from tasks. Unfortunately I'm new to development. How to write the visualforce code to have this send email in lightning. PLEASE HELP
 
location.replace('/email/author/emailauthor.jsp?retURL=/{!Task.Id}&p3_lkid={!Task.What}&rtype=003&p2_lkid=/{!Account.Id}&p24={!JSENCODE(Task.Resource_Required__c)}&template_id=00X0J000002dyko&p5=');

 
Waqar Hussain SFWaqar Hussain SF
Javascript buttons and URL hacking is not supported in javascript button. You can create golobal action for sending email.