1

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

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

1 Answer 1

5

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 :)

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .