Deployment – Deploying Dependency Picklist via Deployment Does Not Reflect in Org

dependent-picklistdeploymentfield-dependencies

As per documentation valueSettings and controllingFieldValue should be responsible for adding or removing field dependencies.

But interestingly nothing works.

I tried removing a node of valueSettings from a Dependent Field and deployed Controlling and Dependent Field both while deployment but still the dependencies are not being removed from org.

enter image description here

I removed the first one from the xml.

  <valueSettings>
        <controllingFieldValue>Circumstantial</controllingFieldValue>
        <valueName>Opting For Commerce</valueName>
  </valueSettings>

While deploying it does not give any error.

Best Answer

The documentation clearly mentioned about the valueSettings.

valueSettings:

Used for the settings that describe a value in a custom picklist field. The picklist can have its own unique value set, or inherit the values from a global value set. You can add field dependency values via Metadata API but not remove them.

Refer the Declarative Metadata Sample Definition for custom picklist

Related Topic