In this article, we will see the solution of Module: Custom Metadata Types Basics.
#1.Get Started with Custom Metadata Types
Q1)What’s the main difference between a custom metadata type and a custom setting?
i)Custom settings are easier to create than custom metadata types.
ii)Custom settings let you package metadata definitions, and custom metadata types don’t.
iii)Custom metadata type records are metadata rather than data.
iv)Custom metadata types give you more options for configuring your org’s behavior.
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
iii)Custom metadata type records are metadata rather than data.
[/bg_collapse]
Q2)You want to configure an app that defines basic warranty terms, like the length. The app will be included as part of an extension package for your subsidiaries. Which kind of custom metadata type most closely fits this scenario?
i)Business rules
ii)Master data
iii)Mappings
iv)Creating custom objects
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
ii)Master data
[/bg_collapse]
#2.Create and Manage Custom Metadata Types
Click on the video to get the solution to Create and Manage Custom Metadata Types
#3.Use Custom Metadata Types in Formulas, Default Values, and Validation Rules
Click on the video to get the solution to Use Custom Metadata Types in Formulas, Default Values, and Validation Rules.
#4.Use Custom Metadata Types in Flows
Q1)How do you reference a custom metadata type record in a flow?
i)Reference the record field in the object.
ii)Reference a custom metadata type in flow using Apex.
iii)Use the Flow user interface to reference the record.
iv)Connect the records via Process Builder.
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
iii)Use the Flow user interface to reference the record.
[/bg_collapse]
Q2)You want to update a standard object field by using a custom metadata type record reference in Flow. What do you do?
i)Update the field in the Object Manager.
ii)Reference both entities as needed in your Flow to make the field updates.
III)Use Flow to reference the standard object and create an Apex class that references the custom metadata type record.
IV)Use Process Builder.
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
ii)Reference both entities as needed in your Flow to make the field updates.
[/bg_collapse]
To know more information visit Custom Metadata Types Basics – Trailhead