Aura component integration attributes reference#

Use these attributes to access email or event context in a Aura component rendered in the Context Panel.

Important: Date format change in release 2501

Starting in release 2501, all dates in the Context Panel’s Lightning Components integration are now passed as ISO 8601-formatted strings.

Previously, dates were passed as JavaScript Date objects, which were incompatible with Salesforce Outlook integration conventions.

If you need to use the previous JavaScript Date format, send a corresponding request to Revenue Grid Support.

Attribute reference#

The following attributes are available for Aura components integrated with Context Panel. These attributes provide context about the current email or event and can be used to control component behavior.

Attribute

Type

Description

Required

Applies to

activityFields

Object

An object that contains configured field names and their corresponding values from the saved activity.

Optional

email, event

activityIds

List

A list of IDs representing saved activities associated with the current mailbox item.

Optional

email, event

attachments

List

A list of attachments associated with the current email or event.

Optional

email, event

categories

List

A list of categories assigned to the selected email or event.

Optional

email, event

dates

Object

An object that contains the event start and end dates as ISO 8601-formatted strings.

Optional

event

emails

List

A list of recipient email addresses.

Optional

email, event

iCalUId

String

The unique identifier of an event. See RFC 2445 for details.

Optional

event

internetMessageId

String

The unique identifier of an email. See RFC 2822 for details.

Optional

email

location

String

The location of the event.

Optional

event

messageBody

String

The body of the email or event in plain text or HTML format.

Optional

email, event

mode

String

The access mode in which the component is rendered. Possible values: view, edit.

Optional

email, event

people

Object

An object that contains recipient information structured based on the source.

Optional

email, event

resolvedObjects

List

A list of objects identified by the Context Panel initial search, each containing an ID and its source.

Optional

email, event

sentDate

String

The date and time when the email was sent, provided as an ISO 8601-formatted string.

Optional

email

source

String

The context in which the component is used. Possible values: email, event.

Optional

email, event

subject

String

The subject of the email or the title of the event.

Optional

email, event

threadId

String

The identifier of the email conversation. Messages in the same conversation share this value.

Optional

email

Attribute details and examples#

activityFields#

  • Type: Object

  • Description: An object that contains configured field names and their corresponding values from the saved activity.

  • Note: If the activity is saved in compose mode and sent but not yet synced (status: “Email/Event will be saved”), the object includes field names with their configured default values. If no default values are set, the corresponding field values remain empty. To customize which fields are returned with this attribute or to configure their default values, please contact Revenue Grid Support.

Example:

{
    activityFields: {
        subject: "Follow-Up Meeting: Next Steps & Solutions",
        recordTypeId: "012000000000000AAA"
    }
}

activityIds#

  • Type: List

  • Description: The list of IDs representing saved activities associated with the current mailbox item.

  • Note: Returns IDs only for activities that have been saved and synced (status: “Email/Event is saved”).

Example:

{
    activityIds: ["02sd2000000d98EAAQ", "02sd2000000x45TBBQ"]
}

attachments#

  • Type: List

  • Description: A list of attachments associated with the current email or event.

  • Note: Each item contains metadata about an attachment, including its ID, name, and size. The component receives metadata only. File content is not included.

Example:

{
    attachments: [
        {
        Id: "AAMkA...QAas=",
        Name: "SampleFile.pdf",
        Size: 2048
        },
        {
        Id: "AAMkA...QAbb=",
        Name: "Presentation.pptx",
        Size: 1048576
        }
    ]
}

Nested properties

Property

Type

Description

attachments[].Id

String

The unique identifier of the attachment.

attachments[].Name

String

The file name displayed in the UI.

attachments[].Size

Number

The size of the attachment in bytes.

categories#

  • Type: List

  • Description: A list of categories assigned to the selected email or event.

Example:

{
    categories: [
        "Salesforce",
        "Sync Error",
        "Sync skipped"
    ]
}

dates#

  • Type: Object

  • Description: The event’s start and end dates, passed as ISO 8601-formatted strings.

  • Note: Prior to release 2501, dates were passed as JavaScript Date objects. If the previous format is required, contact Revenue Grid Support.

Example of the ISO 8601 format:

{
    dates: {
        start: "2025-02-05T10:00:00Z",
        end: "2025-02-05T11:00:00Z"
    }
}

Example of the JavaScript Date format:

{
    dates: {
        start: new Date("2025-02-05T10:00:00Z"),
        end: new Date("2025-02-05T11:00:00Z")
    }
}

emails#

  • Type: List

  • Description: Email addresses of recipients.

  • Note: Use this attribute if it doesn’t matter whether the email address is in the To, From, or CC field, or what kind of attendee the addressee is.

Example:

iCalUId#

  • Type: String

  • Description: The unique identifier of an event. See RFC 2445 for details.

{
    iCalUId: "040000008200E00074C5B7101A82E0080000000040C0DDF000000000000000010000000146C6C1F"
}

internetMessageId#

  • Type: String

  • Description: The unique identifier of an email. See RFC 2822 for details.

{
    internetMessageId: "<[email protected]>"
}

location#

  • Type: String

  • Description: The event location.

{
    location: "Microsoft Teams Meeting"
}

mode#

  • Type: String

  • Description: The access mode in which the component is rendered.

    • view — The item is opened in read mode.

    • edit — The item is opened in compose or edit mode.

  • Note: For calendar events, an event opened by the organizer always has mode: "edit", both while it is being created and after it has been created. An event opened by an attendee has mode: "view". Therefore, don’t use mode to determine whether an event has been created. Use iCalUId instead: it is populated for a created event and empty while the event is being created.

Example:

{
    mode: "edit"
}

people#

  • Type: Object

  • Description: The recipients of an email or event.

  • Note: The structure of this object depends on the source value.

{
    to: [
        { 
        name: "John Doe", 
        email: "[email protected]" 
        }
    ],
    cc: [
        { 
        name: "Jane Smith", 
        email: "[email protected]" 
        }
    ],
    from: [
        { 
        name: "Alice", 
        email: "[email protected]" 
        }
    ]
}
{
    requiredAttendees: [
        { 
        name: "John Doe", 
        email: "[email protected]" 
        }
    ],
    optionalAttendees: [
        { 
        name: "Jane Smith", 
        email: "[email protected]" 
        }
    ],
    organizer: [
        { 
        name: "Alice", 
        email: "[email protected]" 
        }
    ]
}

resolvedObjects#

  • Type: List

  • Description: A list of objects identified by the Context Panel initial search. Each object contains an ID and its source (e.g., To, From, CC for emails; RequiredAttendees, OptionalAttendees, Organizer for events).

  • Note: If an object is resolved using criteria other than the sender’s or recipient’s email address, the source field will be empty.

{
    resolvedObjects: [
        { 
        id: "003d2000000qgbIAAQ", 
        source: "to" 
        },
        { 
        id: "003d2000000qgbHAAQ", 
        source: "cc" 
        }
    ]
}
{
    resolvedObjects: [
        { 
        id: "003d2000000qgbIAAQ", 
        source: "requiredAttendees" 
        },
        { 
        id: "003d2000000qgbHAAQ", 
        source: "optionalAttendees" 
        }
    ]
}

sentDate#

  • Type: String

  • Description: The date and time when the email was sent, provided as an ISO 8601-formatted string.

  • Note: Prior to release 2501, dates were passed as JavaScript Date objects. If the previous format is required, contact Revenue Grid Support.

Example of the ISO 8601 format:

{
    sentDate: "2025-02-05T14:30:00Z"
}

Example of the JavaScript Date format

{
    sentDate: new Date("2025-02-05T12:00:00Z")
}

source#

  • Type: String

  • Description: The context in which the component is being rendered. Possible values: email, event.

Example:

{
    source: "email"
}

subject#

  • Type: String

  • Description: For emails, this is the subject line. For events, this corresponds to the event title.

{
    source: "email",
    subject: "Follow-up on our meeting"
}
{
    source: "event",
    subject: "Quarterly Business Review"
}

threadId#

  • Type: String

  • Description: The identifier of the email conversation.

  • Note: The attribute value depends on the email context:

    • In read mode or when composing a reply, the attribute contains the conversation identifier.

    • When composing a new email, the attribute is an empty string.

Example:

{
  threadId: "AAQkAGQ0Y..."
}