Skip to content

EventPublisher

James Hou edited this page Jan 30, 2021 · 3 revisions

This component comes in two flavors:

  • EventPublisher_LFA.cmp
    • Local Flow Action (Aura).
    • Used for events that do not need a screen component.
  • eventPubisher.js
    • Flow Screen Component (LWC).
    • Used for events within a Flow Screen, it fires when rendered for the first time so it should respect Component Visibility rules too.

This component is an abstraction of messageService and so it gives the ability to communicate with the components in this library (and yours too, if you use messageService in your own LWCs).

Some examples:

Refreshing SOQL Datatable on App/Record Page from Screen Flow

Configure a Local Flow Action that has the following inputs:

  • 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 a Local Flow Action that has the following inputs:

  • Unique Boundary: keep this blank.
  • Event Key: closedialog (case sensitive).
  • Event Value: keep this blank.

Clone this wiki locally