In classic we had URL-hack to pre-populate addressee from url to To field.

I guessed it should be automatically filled out when you choose email template (in templates we can specify reference to contact on current record) but it does not work that way.

How to pre-populate To in lightning?

Empty To field

  • From which object are you trying to do this? From Account, Contact, etc? – Rodrigo May 29 at 12:48

If you are doing this from the Contact object, it should be straight forward, just create a new Action to send an Email. If you are doing this from another object like Account, Opportunity, etc... make sure you have a lookup field to Contact (or any other object in which you have a field of Email Data Type) and populate it with the desired Contact

  1. Create a new Action for the object which you are trying to send the email from. In the example below I created a new Action for the Account (after I had the lookup created for the Contact, which I called Primary Contact)
  2. After the Action is created, create a new "Predefined Field Value" and select the "To" field.
  3. Navigate through your objects/relationships and select the Email field
  4. Modify the page layout to add the new Action

After that, if you have the lookup field populated, it should automatically set the default value for the "To" field.

Please look at the images below:

enter image description here enter image description here enter image description here enter image description here enter image description here

Let me know if you have further questions, as well if you were able to get it to work :)

  • Brilliant idea! let me just check and I will get back with the results. Thanks – Yury Bondarau Jun 3 at 9:39
  • It works. Thank you! – Yury Bondarau Jun 3 at 10:26
  • That's great :) – Rodrigo Jun 3 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.