Revenue Grid integration with Salesforce Lightning components overview#
Revenue Grid integration with Salesforce Lightning components allows you to embed custom Salesforce functionality directly into Context Panel.
This integration enables users to access and interact with Salesforce-driven workflows without leaving their email client. Instead of switching between systems, users can open components, view or edit data, and trigger actions within Context Panel.
This section provides an overview of supported component types, how they are used in Context Panel, and how the integration works at a high level.
What are Lightning components?#
Lightning components are reusable UI building blocks used to develop interfaces in Salesforce Lightning Experience and the Salesforce mobile app.
They allow developers to create custom functionality, automate workflows, and design tailored user experiences on top of Salesforce data.
Supported component types#
Revenue Grid supports the following Lightning component types:
Lightning web components (LWC) – the modern Salesforce development model, built using standard web technologies such as JavaScript, HTML, and CSS. They are lightweight, performant, and recommended for all new implementations.
Aura components – part of the legacy Salesforce framework, using Salesforce-specific syntax and architecture. They are commonly used in existing implementations and are fully supported in the integration.
Salesforce Flow (via components) – flows are not supported as standalone UI elements in the Context Panel. To use a flow, wrap it in a Lightning web component or Aura component and configure that component for integration.
User experience in Context Panel#
When Lightning components integration is configured, users can access Salesforce components directly from Context Panel.
Components can be opened in two ways:
From the Smart actions toolbar – components appear when a user opens an email or event and can be launched on demand
Automatically on Context Panel open – some components (such as custom save components) can be configured to start immediately without user interaction
Once opened, the component is displayed in the Context Panel, where users can interact with it the same way as in Salesforce—for example, update records, enter data, or run workflows.
This allows users to complete Salesforce-related tasks without leaving their email client.
Integration architecture#
Component hosting#
Context Panel acts as a container for Salesforce Lightning components.
When a component is opened, Context Panel loads and renders the configured Lightning web component or Aura component inside its UI. The component runs using standard Salesforce runtime behavior and handles its own logic, validation, and data processing.
Data flow and context#
Components opened from the Context Panel operate in the context of the current email or event.
Depending on the configuration, a component can receive contextual data (for example, email or event details) and use it to pre-fill fields or drive logic.
Context Panel provides context, while the component is responsible for handling input data and executing the required logic.
Completion handling#
To notify Context Panel that an action is complete, the component must fire the rg:finish event.
This event signals that the component has finished its operation, such as saving an email or event, updating a record, or completing a workflow.
When Context Panel receives this event, it can close the component, refresh the current state, or trigger post-action behavior. This event is required for features such as save and close behavior, attachment handling, and category assignment.