Skip to main content
How to deploy Field dependencies

Where to find Field dependencies in your comparison

Ryan Quinn avatar
Written by Ryan Quinn
Updated this week

Field dependencies in Salesforce control the visibility of one field based on the value of another (the controlling field).

Important to note: You cannot delete existing Field dependencies; this is due to a limitation of the Salesforce Metadata API.

What metadata type to select in the filter?

Field dependencies are retrieved through the Metadata API within the Custom field, which is a subcomponent of the Custom object metadata type.

You can use our Basic Comparison metadata filter, which already includes the Custom field type.

How do Field dependencies look in the comparison results?

After the comparison has loaded, you can navigate to the Custom field type and find the field in which you've made the change on.

In the below example, a field dependency has been added to the Custom_Picklist field. You'll be able to confirm that the values are there within the XML. The changes will show up as <controllingFieldValue>.

Where is the Controlling Field (parent picklist)?

An easy way to locate the controlling field would be to search in the dependencies of the field you've added the values to. This can be found by opening it up as shown below.

Did this answer your question?