Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

SFDC-Assets/rc-platform-event-notifications

Repository files navigation

sfdx-platform-event-notifications

RC_BusinessEvent_NotificationConsole is an Aura Lightning component that:

  1. Subscribes to a custom platform event channel
  2. Displays notifications when Business Event platform events are received - in a toast pop-up message and as a list within the component.
  3. Past events can be replayed from the event channel.
  4. A history of events can be replayed from stored Business Event custom object records.
  5. Events can be marked as "seen" in the notification console and this "seen" action is stored with the Business Event custom object to see which users saw and marked the event and at what date/time.

Business Event Notification Console

More detailed documentation in these:

Development

To work on this project in a scratch org:

  1. Set up CumulusCI
  2. Run cci flow run dev_org --org dev to deploy this project.
  3. Run cci org browser dev to open the org in your browser.

Deploy

This project depends on the lightning component RC_FlowButton in https://github.com/SFDC-Assets/rc-flow-components

If using CumulusCI to deploy this project, the dependent project will be deployed automatically as an unmanaged package before installing the source in this project.

If not using CumulusCI, first deploy the dependent project above using sfdx or the unmanaged package installation url in https://github.com/SFDC-Assets/rc-flow-components/blob/master/README.md. Then install with sfdx:

  1. ./scripts/authenticate-prod-org.sh
  2. ./scripts/convert-to-metadata-api.sh
  3. ./scripts/deploy-metadata-to-prod-check.sh
  4. ./scripts/deploy-metadata-to-prod.sh
  5. Assign the permission set named business_events to users.