When an application—or Opportunity—reaches its final stage, everyone who worked on it should see a pop-up with key details: name, completion date, who completed it, and any other important info. And yes, I added custom confetti for the win.
Here’s what I did:
Used Change Data Capture (CDC) to track Opportunity updates.
Subscribed to CDC in an LWC via empAPI.
On Closed Won, the LWC triggers a pop-up with all the details and custom confetti.
Handles both single and bulk Opportunity Closed Won scenarios. Bulk updates are displayed in a datatable so users can view all updated records at once.
For the confetti, I used a custom implementation by downloading canvas-confetti , uploaded it as a static resource, and invoked it in the LWC whenever CDC captures Closed Won updates.
Platform Events could also work here, but I wanted to try CDC this time.
Beyond the pop-up, this approach can be leveraged to:
Send Opportunity Closed Won data to third-party applications subscribing to CDC or Platform Events.
Share details across Salesforce orgs via Platform Events using Named Credentials and Connected Apps.
The LWC can be exposed via the utility bar using an Aura wrapper or placed directly on the Opportunity record page—whatever fits the org’s need.
It’s a small touch, but it shows how thoughtful design and Salesforce tools can make processes visible, collaborative, and delightful.