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 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기