Celebration is a fun and engaging way to recognize achievements with your users directly on their Salesforce screen. Salesforce already has a standard confetti celebration feature. Although this standard feature is limited to paths only, there are some custom confetti components that you can use. For instance, it is possible to display confetti on flow screens using this component. You can also display the same confetti options via record-triggered flows using this component. However, what if you want to display something more fun and engaging? For instance, displaying an emoji as confetti would be great, right?
In this post, you can find a screen component that can display multiple emojis as confetti. From displaying dollar signs to smiley faces, the use cases are endless!
How to Use the Component
1- Install the package using the installation links below.
2- Create a screen flow and add the "emojiConfetti" screen component to a flow screen.
3- This component has multiple configuration parameters.
Duration: Duration of confetti effect in seconds.
Emojis: Comma-separated list of emojis (and plain texts). It is possible to use variables as well.
Number of Confetti Pieces: Number of confetti pieces to show.
Random Rotation: Enable random 180 degree rotation for confetti pieces.
Size: Size of the confetti pieces. Available options: xxsmall, xsmall, small, medium, large, xlarge, xxlarge.
Speed: Speed of the confetti pieces.
Once the flow displays this screen, it will show your custom emoji confetti effect.
Showing Confetti on Field Updates
Since it is a screen component, it works with screen flows only. However, you can build an invisible screen flow and display it on the record page when a checkbox becomes true. This way, you can show emoji confetti on field updates as well.
For instance, create a checkbox field on the Opportunity object and mark it when the stage becomes Closed Won. Add this screen flow to the Lightning record page and make it visible when the checkbox is true. Don't forget to unmark the checkbox in the flow so that you can use it again.
Here is the result.
Installation Links
Use this link to install in production or developer edition environments.
Use this link to install in sandbox environments.
Amazing! Do you need path enabled to use this?
No, it is not required.