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
Sreenivasulu AdipudiSreenivasulu Adipudi 

Create custom button with prepopulated values to send email

Hi Everyone,

We have a custom URL button on the Task object.

Button URL : /_ui/core/email/author/EmailAuthor?p2_lkid={!ContactId}&rtype=003&p3_lkid={!CaseId}&retURL={!CaseId}&p24={!Account.Additional_Contacts__c}

'Account.Additional_Contacts__c' is custom field in Account object. It contains more than one email Id separating with a semicolon (;)
This button was created in Salesforce classic version. It is not working in lightning experience.

How to create a button with the same functionality in the lightning experience?

Please help in this scenario.

Thanks,
Sreenivasulu A.
Best Answer chosen by Sreenivasulu Adipudi
mukesh guptamukesh gupta
Hi Sreenivasulu,

For this approach you need to create a lighnting compnent with quick action. This lighnting component will have your cuntom functionlaity like collect email Ids and send emails.

if you need any assistanse, Please let me know!!


Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh    

All Answers

ShivankurShivankur (Salesforce Developers) 
Hi Sreenivasulu,

Please check with below thread and similar discussion:
https://salesforce.stackexchange.com/questions/78925/sending-email-using-email-author-in-custom-button

Hope above information helps. Please mark as Best Answer so that it can help others in the future.

Thanks.
Sreenivasulu AdipudiSreenivasulu Adipudi
Hi Shivankur,

Thank you for your quick response.
This solution is working in the Classic version. But not working for Salesforce lightning experience. My question is, how to implement the same functionality for lightning.

Thanks,
Sreenivasulu A.
mukesh guptamukesh gupta
Hi Sreenivasulu,

For this approach you need to create a lighnting compnent with quick action. This lighnting component will have your cuntom functionlaity like collect email Ids and send emails.

if you need any assistanse, Please let me know!!


Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh    
This was selected as the best answer