+ Start a Discussion
SFDC@ErrorSFDC@Error 

Dynamically add Picklist value

Hi All,
How can i add dynamically picklist value when i am uploading file using data loader (when value is not there from csv that will add as picklist value).Is there any work around....
harsha__charsha__c
You might need to use metadata API to add a picklist value from apex. But I would suggest to turn off "Restrict picklist to the values defined in the value set" which allows the operation that you are trying from dataloader (picklist value won't be added to the picklist but data gets saved with the value you provide in the CSV). Not sure if this is what you are looking for.

User-added image

Hope this helps.

-Harsha