Celebrate Salesforce Won Opportunities with Sound Effects

The highlight of working an opportunity in Salesforce is finally marking the stage as “Won.” This sought-after moment is cause for celebration, and thanks to a new Lightning Web Component, you can leverage sound effects to liven it up.

See it in action below.

Start Shredding In Your Org

Ready to bring the celebration to your org? Follow the simple instructions below to set it up for your sales team.

1. Upload your Audio File

You can choose from your own files, providing you follow the guidelines below.

  • Size: 5MB or less
  • Type: .mp3 or .wav file
  • Recommended duration: 5–10 seconds in length

If you don’t have an audio file on hand, worry not—Salesforce has you covered! Use this link to access their zip file full of options, all of which are in the public domain and free for you to use.

Once you have your audio file ready, upload it to your org.

  1. Access Setup.
  2. From Setup, enter static in the Quick Find box, then select Static Resources.
  3. Click New.
  4. Create the static resource as follows:
    • Name: Celebration
    • Cache control: Private
    • Upload the audio file of your choice, using either your custom recording or one of the selections from the zip file.
  5. Click Save.

2. Install the Package

Install the Lightning Web Component with this link: Click this link: https://login.salesforce.com/packagingSetupUI/ipLanding.app?apvId=04t1U000007sO9uQAE

3. Create a Custom Metadata Record

Create a configuration to play your audio file when users update an opportunity stage to Closed Won.

  1. From Setup, enter metadata in the Quick Find box, then select Custom Metadata Types.
  2. Locate the type Trailshred Setting, then click Manage Records.
  3. Click New.
  4. Create the metadata record as follows:
    • Label: Audio When Oppty Closed Won
    • Trailshred Setting Name: Audio_When_Oppty_Closed_Won
    • Active: checked
    • Audio Static Resource Path: Celebration
    • Object Name: Opportunity
    • Field Name: Stage
    • Field Value: Closed Won (or whatever value you use to make this stage)
  5. Click Save.

4. Update the Lightning Page and Test

Last step! We just need to update the opportunity page, so that your component will play the audio file you uploaded.

  1. Create New Opportunity.
  2. Create the opportunity as follows:
    • Opportunity Name: Shred Test
    • Stage: Any stage other than the one you configured in your Metadata Record
    • Close Date: select any future date
  3. Click Save.

Now let’s update our Lightning Record Page.

  1. From your test opportunity, click the gear icon in the top-right area of your screen and select “Edit Page.”
  2. Enter audio in the Search Components box, then drag the Trailshred Audio Player component onto the canvas and drop it at the bottom of the page (not into any existing components).
  3. Activate!

Now get ready to rock out—go back to your test opportunity and change the stage to “Won.” 🎶

Watch out for another fun way to celebrate your wins in the Summer ’19 Salesforce Release with on-screen confetti.

Leave a Reply

Your email address will not be published. Required fields are marked *