1. Created a lightning component with two dependent picklist fields.

2. Added component to the Email Application Pane in the 'Outlook Integration And Lightning Sync '

enter image description here

3. Created the custom picklist fields in the EmailMessage Object

Got this far... however, need direction on how I can map the two dependent picklist fields in the lightning component to corresponding fields on the EmailMessage Object. ?

enter image description here

  • It sounds like you want to write to two additional fields to the Email Message object prior to logging the email. You need a reference to the saved email message. I think the only way you're going to accomplish this is by writing a custom log email component to replace the salesforce implementation. These components are single page applications (SPAs) and many times more complicated than what you've shown here. Dec 4, 2020 at 18:47

1 Answer 1


You're limited in what you can edit on the Outlook side-panel. That page, in your screenshot, is what you can add your own custom lightning components to following the documentation

However, that's where it really ends as the rest is up to you to handle in the component. Your component will do whatever it is you tell it to do but it will not tie in to any other standard/out-of-the-box functionality (like the "log email" button as you're asking).

In your use case, you'd have to create a LWC to replicate the whole process and remove the standard functionality. This entails quite a lot:

  • A button called "log email"
  • Present relevant fields - your custom picklist
  • Present records to associate it to based on email/event contents - contacts, opps, etc.
  • Creation of said Email with all its relevant info/relations

You might be better off thinking whether you could tackle this a different way - can the product information be on the parent record (versus the email) or could you just log the email against the product itself as nothing is stopping you from relating that email to a product

enter image description here

You must log in to answer this question.

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