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
Ranjith DevRanjith Dev 

How can we create a picklist value by apex code and how to create/update picklist value

Hi ,

How can we create a picklist value by apex code and how to create/update picklist value.

Thank you 
AbhishekAbhishek (Salesforce Developers) 
Your query is answered in the below developer blogs,

https://salesforce.stackexchange.com/questions/162390/how-to-update-picklist-values-along-with-record-types-using-metadataservice

https://salesforce.stackexchange.com/questions/65774/how-can-i-add-a-new-value-to-a-picklist-using-apex


Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
Ranjith DevRanjith Dev
Thanks you for the information Abhishek.

I want to update the Global picklist values through code.. is it possible? if possible, can you please a information for that requirement.




 
AbhishekAbhishek (Salesforce Developers) 
Ranjith if you have additional please create a new question so that I OR  my team look into it.

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

Thanks.