Create Components for the Outlook and Gmail Integrations
Create custom Aura components that are available to add to the email application pane for the Outlook and Gmail integrations.
To add a component to email application panes in the Outlook or Gmail integration, implement the clients:availableForMailAppAppPage interface.
To allow the component access to email or calendar events, implement the clients:hasItemContext interface.
The clients:hasItemContext interface adds attributes to your component that it can use to implement record- or context-specific logic. The attributes included are:
-
The
sourceattribute, which indicates the email or appointment source. Possible values includeemailandevent. -
The
modeattribute, which indicates viewing or composing an email or event. Possible values includeviewandedit. -
The
peopleattribute indicates recipients’ email addresses on the current email or appointment.The shape of the
peopleattribute changes according to the value of thesourceattribute.When the source attribute is set to email, the people object contains the following elements.
When the source attribute is set to event, the people object contains the following elements.
-
The
subjectindicates the subject on the current email. -
The
messageBodyindicates the email message on the current email.
To provide the component with an event’s date or location, implement the clients:hasEventContext interface.
The Outlook and Gmail integrations don’t support the following events:
force:navigateToListforce:navigateToRelatedListforce:navigateToObjectHomeforce:refreshView
To ensure that custom components appear correctly, enable them to adjust to variable widths.
-
Sample Custom Components for Outlook and Gmail Integration
Review samples of custom Aura components that you can implement in the email application pane for Outlook integration and Gmail Integration.