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
GobbledigookGobbledigook 

Deleting Custom Picklist Values

Hey all,

 

I'm having a problem where I need to dynamically update a picklist through a web service from an ERP system to Salesforce, and so I've started working on it, using C#.  The list will change depending on business practices throughout and will be "pushed" from the ERP to Salesforce nightly. 

 

So I was able to create the picklist values through the Web Service, as well as Update the picklist values using the metadata API.  The problem I'm running into now is deleting the values WITHOUT deleting the entire picklist itself. 

 

I've tried using delete but that will get rid of the entire picklist, and I only want to get rid of a few values at a time.  Any thoughts or examples that might help out? 

Best Answer chosen by Admin (Salesforce Developers) 
ShwetaSShwetaS

Hi,

 

We cannot delete the picklist values that has been saved to our organisation, since data rows might exist that would need to be interactively remapped.

 

Please refer the below link for more reference.

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_picklist.htm


Shweta
Salesforce Developer Support

If my answer solved your question, please mark it solved so I can help as many community members as possible!