You need to sign in to do that
Don't have an account?
Sandeep Rahul PV
How to Create, Update, Delete Picklist Value Sets through Apex?
Hi Guys,
How do Create, Update and Delete Picklist Value Sets through Apex?
Thanks
Sandeep.
How do Create, Update and Delete Picklist Value Sets through Apex?
Thanks
Sandeep.
Greetings!
You would need to use MetadataService class to add the picklist value to your picklist as suggested in the below thread:
https://salesforce.stackexchange.com/questions/65774/how-can-i-add-a-new-value-to-a-picklist-using-apex
Please mark it as best answer if it helps you to fix the issue.
Thank you!
Regards,
Priya Ranjan
Hi Priya,
I am getting this error.
My Code is
=========
I have changed the code now it is working.
https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataService.cls