rg:finish event parameters#

The rg:finish event allows Lightning web components and Aura components to notify Context Panel when a component completes its operation. By including specific parameters in this event, you can control how Context Panel responds — for example, by displaying notifications, refreshing activity lists, or providing quick access to created records.

This article provides a detailed reference for all available rg:finish event parameters.

Parameter reference#

Note: All parameters are optional.

Parameter

Type

Description

Notes

notificationMessage

String

The notification message to display in the Context Panel.

If not provided, the message will depend on the created objects:

For createdActivityIds: Depending on the context, it displays “Email was saved to Salesforce” or “Calendar event was saved to Salesforce”.

For createdObjectIds: Displays “New {object label} was created.”

If neither parameter contains values, no notification message will be displayed.

createdActivityIds

Array

An array of created activity IDs.

If specified with at least one entry, the notification includes a View it now button for the first ID.

createdObjectIds

Array

An array of created object IDs (e.g., Cases, Contacts, etc.).

If specified with at least one entry and createdActivityIds is empty, the notification includes a View it now button for the first ID.

reloadActivities

Boolean

A flag indicating whether Context Panel should reload saved activities.

If set to true, Context Panel reloads activities linked to the current email or event, updating the save status.

reloadResolvedObjects

Boolean

A flag indicating whether Context Panel should reload resolved objects.

If set to true, Context Panel reloads objects identified by the Context Panel initial search for the current email or event.

setCategory

Boolean

Controls whether Context Panel applies the configured Outlook category after a successful save.

If set to true, the category is applied. If set to false or not specified, the category is not applied.

linkedAttachments

Object

Contains the Salesforce record IDs and Outlook attachment IDs to be linked after the save operation completes.

Includes ParentIds and AttachmentIds. Context Panel links each attachment from AttachmentIds to each record from ParentIds.

linkedAttachments.ParentIds

String[]

The list of the Salesforce record IDs to which attachments should be linked.

Must contain valid Salesforce record IDs. Include IDs only after creation is complete.

linkedAttachments.AttachmentIds

String[]

The list of Outlook attachment IDs to link to the created Salesforce records.

Each attachment is linked to each record from ParentIds.