Create a Custom Metadata Record
In this step, you use custom metadata types, which allow you to use records in Salesforce to configure your app. The package you installed already has the custom metadata type set up in the component. All you have to do is configure it.
Now, this component allows you to add sounds to all kinds of actions in your Salesforce org. But beware! With great components come great responsibility. Don’t annoy your users (or their neighbors) by adding sound effects to every last thing they do.
Create a configuration to play your audio file when users update an opportunity stage to Closed Won.
- From Setup, enter
metadatain the Quick Find box, then select Custom Metadata Types.
- Locate the type Trailshred Setting, then click Manage Records.
- Click New.
- Create the metadata record as follows:
Audio When Oppty Closed Won
- Trailshred Setting Name:
- Active: checked
- Audio Static Resource Path:
- Object Name: Opportunity
- Field Name: Stage
- Field Value: Closed Won
- Click Save.
Your custom metadata record should look like this:
You did it! Up next, you finish up the project by updating the opportunity page and testing it out.