You need to sign in to do that
Don't have an account?
Madhu007
Updating Picklist values in the Field Not a record
Hi, I have requirement like this.
I have a pick list field with few values.i want to add some more picklist value to this field from excel sheet. Not like this object>field>edit...
Is there any chance to do this..
Thanks in advance.
I have a pick list field with few values.i want to add some more picklist value to this field from excel sheet. Not like this object>field>edit...
Is there any chance to do this..
Thanks in advance.
This can be possible by using salesforce metadata API. Please find sample code below.
Regards,
Naveen
http://www.autorabit.com
Same scenarion has been posted on community.We cant acheive this directly with code,u have to call external webservices which will call back metadataapi at salesforce end to add/updxate the picklist value.
Please refer below link for your issue.That would be helpful
https://developer.salesforce.com/forums?id=906F00000008yw2IAA
Thanks :)
The sample code is from java. I have used salesforce provided Metadata API and Partner API.
The complete code is provided below.
*Mark it as solved if it finds solution for your question.
Regards,
Naveen
http://www.autorabit.com
We cannot use metadata API with apex code. Instead use force.com IDE or Ant Migration tool for your requirement they are based on metadata API only.
Please go through the below document it gives clear idea on how to use metadata API.
http://www.salesforce.com/us/developer/docs/api_meta/api_meta.pdf
Regards,
Naveen.
http://www.autorabit.com