function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kamal_Raokamal_Rao 

How to get order object status custom pick list values in Metadata for deploy

Hi, How to get order object status custom pick list values in Metadata for deploy.
 
Selva Ramesh 4Selva Ramesh 4
Hi,

Follow the instructions below to install Eclipse and the force.com IDE:
https://developer.salesforce.com/docs/atlas.en-us.eclipse.meta/eclipse/ide_install.htm

Then you can create a new project, link your org and choose the metadata components to pull, in this case I recommend just choosing the objects you need in the Object folder. 

Then you can right click on the metadata files and select "Deploy to Server" and login to the receiving organization, validate deployment, and deploy. 

Thanks,
Selva
Sweet Potato Tec
Amit Chaudhary 8Amit Chaudhary 8

You can still get the picklist values for standard fields using the StandardValueSet. To get the Account.Type field values, put this in your package.xml:
<types>
    <members>AccountType</members>
    <name>StandardValueSet</name>
</types>
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/standardvalueset_names.htm


Also note that you can get the translations for the value sets by using:
<types>
    <members>*</members>
    <name>StandardValueSetTranslation</name>
</types>

Check below post for more detail
1) https://salesforce.stackexchange.com/questions/16408/deploying-standard-picklists-via-metadata-api
 
kamal_Raokamal_Rao
Thnak you Amith,
for below xml nothing is came only Package.xml is coming when i am retrieve. 
<types>
<members>*</members>
<name>StandardValueSetTranslation</name>
</types>
And below Xml Is for Account.Type  but what is the Order.Status ? i tryed withOrderStatus it is giving error.  
<types>
<members>AccountType</members>
<name>StandardValueSet</name>
</types>
 
Satheesh BojanapuSatheesh Bojanapu
Hey,
Little late here, but I am sure this will help who's still looking out for fix.

Try parsing below for Orders Status:
<types>
    <members>Order.Status</members>
    <name>CustomField</name>
</types>
<types>
    <members>Order</members>
    <name>CustomObject</name>
</types>
<types>
     <members>OrderStatus</members>
     <name>StandardValueSet</name>
</types>
<version>55.0</version>