Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- .NET Development
- :
- Updating Pick list values via metadata API help re...
turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
Updating Pick list values via metadata API help required
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-10-2012 12:08 AM
hi i have woring on METADATA Api and soap ui
and i have successfully create soap envelope to add new picklist value in picklist field
via
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:met="http://soap.sforce.com/2006/04/metadata"> <soapenv:Header> <met:CallOptions> <met:client>---</met:client> </met:CallOptions> <met:SessionHeader> <met:sessionId>---</met:sessionId> </met:SessionHeader> </soapenv:Header> <soapenv:Body> <update xmlns="http://soap.sforce.com/2006/04/metadata"> <!--Zero or more repetitions:--> <UpdateMetadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="customfield"> <currentName>lead.number__c</currentName> <metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomField"> <!--Optional:--> <fullName>lead.number__c</fullName> <label>number</label> <picklist> <picklistValues> <fullName>new</fullName> </picklistValues> <sorted>false</sorted> </picklist> <type>Picklist</type> </metadata> </UpdateMetadata> </update> </soapenv:Body> </soapenv:Envelope>
Now issues I am facing , is
Is there any way to update / edit any particular picklist value ???
e.g , Object : Lead , field : number__c, type : picklist , picklist values : new , old
any way i can edit "new " to "new_value" via meta data API .
Thanks to soap and metadata api developers in advance

