Print this page

How can I add new values into a picklist field using the API?

Knowledge Article Number 000002778
Description

I know I can add new values into a picklist through the UI, but I was wondering how I can achieve this using the API.

Resolution

To add new values into a picklist you may use the Metadata API. For a code snippet please refer to this link:

http://www.salesforce.com/us/developer/docs/api_meta/index_Left.htm#StartTopic=Content/meta_picklist.htm





promote demote