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
Internal PartnerInternal Partner 

What happens if I change the API of a picklist value?

Hi all,

when a picklist field has been deployed to Production and you have some picklist values where you have to change, what is best practice, apart from changing the picklist value, do I have to change the API of the picklist value as well?. What about if I change the API of the picklist value as well?.

Could someone give me here some hints?
preetha kpreetha k
Hi,
The best practice is not to change the api name of the picklist value.
1.There won't be any impact If you change only the label name.
2.If you change only the API you will be getting duplicate label error when you try to deploy it (but you can do it manually)
3.if you change both a new picklist value will be created

Choose this a best answer if you the given answer resolves your query.

Best Regards
Kamaal Ahmad Usmani 5Kamaal Ahmad Usmani 5
@preetha k
We did the option 2, manually changed the api name of picklist value. 
Now the issue is some records are still showing the old api picklist value in backend. 
What's the solution for this if we have huge amount of records still showing the old api?
ThakurgThakurg
@Kamaal 
Use replace button on the field where you have reamed the values and replace oldd value from new values.