Skip to main content

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
  5. 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.

계속해서 무료로 학습하세요!
계속 진행하려면 계정을 가입하세요.
얻을 수 있는 이점
  • 커리어 목표에 대한 개인화된 권장 사항 제공받기
  • 실습 과제 및 퀴즈를 통해 스킬 연습
  • 진행 상황을 추적하고 고용주에게 공유
  • 멘토십과 커리어 기회에 연결