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
IspitaIspita 

Adding and modifying (Deleting or setting as default) of Picklist values

Hi,
Can anyone guide me with how to add picklist values dynamically to a picklist field through code.
With my reserach so far I have think that addition of values to picklist fields can be done only via Salesforce UI,in case I am not of the right page on this please do correct me.
Second of all I have the requirement of setting as default one of the picklist values via coding.
Third I am required to delete picklist values dynamically via code.

Help on the above will be highly appreciated.
Thanks