Skip to content

EventPublisher

James Hou edited this page Jun 29, 2021 · 3 revisions

This component is an abstraction of messageService and so it gives the ability to communicate with any component using messageService.

This component is designed to be used in Screen Flows and comes in two flavors:

Local Flow Action (Aura)

EventPublisher_LFA.cmp

  • Used for events that do not need a screen component.

Flow Screen Component (LWC)

eventPubisher.js

  • Used for events within a Flow Screen, it fires when rendered for the first time so it should respect Component Visibility rules too.

Examples

Refreshing SOQL Datatable on App/Record Page from Screen Flow

Configure Event Publisher Local Flow Action with the following:

  • Unique Boundary: the uniqueBoundary given by soqlDatatable as a flow Input.
  • Event Key: refreshsoqldatatable (case sensitive).
  • Event Value: keep this blank.

Closing the Dialog opened by SOQL Datatable from Screen Flow

Configure Event Publisher Local Flow Action with the following:

  • Unique Boundary:
    • If tab focused dialog is enabled, use uniqueBoundary to only close dialogs by that tab.
    • Optionally, keep this blank to close dialogs across tabs.
  • Event Key: closedialog (case sensitive).
  • Event Value: keep this blank.
Clone this wiki locally