Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Create a Custom Metadata Record

With Great Components Come Great Responsibility

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 the Configuration

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: sound1 
    • Object Name: Opportunity
    • Field Name: Stage
    • Field Value: Closed Won
  1. Click Save.

Your custom metadata record should look like this:

Custom metadata record to play audio when Opportunity Stage equals Closed Won.

You did it! Up next, you finish up the project by updating the opportunity page and testing it out.

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈