Event handler in the enhanced Case view component

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • A component triggers an event when a certain condition is met or on user interaction. The event can be used to execute an action through a code on third-party webpage.

    Table 1. Events triggered by the component
    Event handler Description Payload
    SN_EMBEDX_CASE_VIEW#COMPONENT_READY This event is dispatched when a component is ready and usable. None
    SN_EMBEDX_CASE_VIEW#COMPONENT_ERROR This event is dispatched when a property validation or internal error occurs. errorMessage, errorType
    SN_EMBEDX_CASE_VIEW#CASE_COMMENT_ADDED This event is dispatched when a comment is added in the activity stream. None
    SN_EMBEDX_CASE_VIEW#RELATED_RECORD_SELECTED This event is dispatched when a record of related list is selected. table, record_sys_id, reference_table, reference_record_sys_id
    Additional events
    SN_EMBEDX_CASE_VIEW#ACTIVITY_SELECTED This event is dispatched when an activity is selected. playbookContextId, stageContextId, activityContextId
    SN_EMBEDX_CASE_VIEW#STAGE_SELECTED This event is dispatched when a stage is selected. playbookContextId, stageContextId
    SN_EMBEDX_CASE_VIEW#FILTER_OPTION_SELECTED This event is dispatched when a filter option is selected. playbookContextId, item
    SN_EMBEDX_CASE_VIEW#ACTIVITY_STATE_CHANGED This event is dispatched when the activity's state changes. playbookContextId, stageContextId, activityContextId
    SN_EMBEDX_CASE_VIEW#OPEN_RECORD This event is dispatched when an open record event is fired. table, sys_id, params, query
    SN_EMBEDX_CASE_VIEW#PLAYBOOK_EXPANDED This event is dispatched when the playbook chevron is expanded. playbookContextId, updatedExpandState
    SN_EMBEDX_CASE_VIEW#UPDATE_SELECTION This event is dispatched when an activity is completed. selectedPlaybook, selectedStage, selectedActivity
    SN_EMBEDX_CASE_VIEW#OPEN_LIST This event is dispatched when an open list event is fired. table, listTitle, query, disableInlineEditing, listView
    SN_EMBEDX_CASE_VIEW#USER_INTERACTION This event is dispatched when the user interacts with any element on playbook. playbookContextId, parentTable, parentRecord, stageName, stageTitle, stageState, activityTitle, activityContextId, associatedRecord, associatedTable
    SN_EMBEDX_CASE_VIEW#FILTER_SELECTED This event is dispatched when a filter is selected. playbookContextId, value