Skip to content

Using Lightning Message Channel

The SiX Agent can receive and process custom events from Salesforce using the Lightning Message Channel (LMC) framework. This allows for advanced integrations within Lightning Web Components (LWC) and Visualforce pages.

Channel Information

The SiX Agent listens on the following Lightning Message Channel: SiX__agentLMC__c

Supported Events

SIX_CUSTOM_EVENT: ADD_HISTORY

This event allows you to programmatically update the "Who" and "What" associations for the current active contact in the SiX Agent.

Attributes

Attribute Description
phoneNumber Phone number being dialed (for click-to-dial events).
skillId Outbound Skill ID to use.
what id Salesforce Unique ID for the 'What' record (e.g., Case, Account).
what label Display label for the 'What' record.
who id Salesforce Unique ID for the 'Who' record (e.g., Contact, Lead).
who label Display label for the 'Who' record.

Example Payload

{
  "type": "SIX_CUSTOM_EVENT",
  "subType": "ADD_HISTORY",
  "data": {
    "what": {
      "id": "500f100001q0aGC",
      "label": "Case 00002296",
      "isStandalone": "N"
    },
    "who": {
      "id": "003f100001q0aGC",
      "label": "Jim Smith",
      "isStandalone": "N"
    }
  }
}

Implementation

To use this in your Salesforce organization, you must reference the SiX__agentLMC__c channel in your LWC or Visualforce component and publish messages following the schema above.