function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi Kumar 6740Ravi Kumar 6740 

How to create Dependent Picklists in Custom Metadata declaratively?

ANUTEJANUTEJ (Salesforce Developers) 
Hi Ravi,

>> https://www.jitendrazaa.com/blog/salesforce/dependent-picklist-in-salesforce-flow-using-custom-metadata-type-video/#:~:text=Navigate%20to%20%E2%80%9CSetup%20%7C%20Build%20%7C,API%20name%20of%20controlling%20field)

The above link has an implementation that is similar to yours can you try checking it once?

Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.  

Thanks.
Ivyevelyn albertIvyevelyn albert
Navigate to “Setup | Build | Develop | Custom Metadata Types | New Custom Metadata Type”. For this example, we will name custom metadata type as “Dependent Picklist” with following custom fields: Object Name for Dependent Picklist (https://checkbillnow.com/pesco-online-bill/)(Created on which object) Controlling field API Name (API name of controlling field)
William Hall 10William Hall 10
Create two custom metadata types: one for the controlling picklist and one for the dependent picklist.In the controlling picklist metadata type, create a custom field to hold the values for the picklist.In the dependent picklist metadata type, create two custom fields: one to hold the values for the picklist and one to hold the value of the controlling picklist.In the dependent picklist metadata type,(https://www.mybalancenow.page/) create a validation rule that checks the value of the controlling picklist and restricts the available values for the dependent picklist.In the dependent picklist metadata type, create a trigger that updates the value of the dependent picklist field when the controlling picklist field is changed.Finally, add the custom metadata types to your package and deploy them to your org.