From the Custom Metadata Type page under Setup, you can both create Custom Metadata Type objects and manage the records they contain. Any records you create can be included in your package and are thus available to your Apex logic immediately after the installation of your package.
Perform the following steps to create the Track Lap Records MDT object:
- Create a Track Lap Records Custom Metadata Type by clicking on New, and enter TrackLapRecords as the API name.
- From the Visibility field, select All Apex code and APIs can use the type, and it is visible in Setup. This is done since we want to allow the administrator to record their own fastest lap times in addition to those we include. You can choose the Only ...