In my last post, i tried to explain a use case for custom metadata and talked about its advantages - Salesforce Custom Metadata - Usage and Advantages . As promised in this post, i am going to walk you through an example of what I built for this particular custom metadata type. The use case for this example is detailed in the earlier post. To create a custom metadata, go to Setup -> Develop -> Custom Metadata Types. Click New Custom Metadata Type button and populate the Label details. Also there is a setting "Visibility" that controls if only a managed package can use this metadata type or any Apex code can use it. I set it to an Apex code based on my use case. Below is the new metadata type i created - On drilling into the new metadata type, you can define what all fields are required to hold the metadata information. I configured two custom fields to capture the queue name and the cutoff time fields. So every record in this metadata type will hav...