Newer Version Available

This content describes an older version of this product. View Latest

Sample Custom Components for Lightning for Outlook and Lightning for Gmail (Beta)

Review samples of custom Lightning components that you can implement in the Email Application Pane for Lightning for Outlook and Lightning for Gmail.
Here’s an example of a custom Lightning Component you can include in your email application pane for Lightning for Outlook or Lightning for Gmail (Beta). This component leverages the context of the selected email or appointment.
In this example, the custom component displays account and opportunity information based on the email recipients’ email addresses. The component calls a JavaScript controller function, handlePeopleChange(), on initialization. The JavaScript controller calls methods on an Apex server-side controller to query the information and compute the accounts ages and opportunities days until closing. The Apex controller, JavaScript controller, and helper are listed next.