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
Ian Frampton 9Ian Frampton 9 

Deploying field 'quantityunitofmeasure' using Metadata API

Hi, we're trying to deploy 'quantityunitofmeasure' from Product using the metadata API, however, it is only pulling down the core field, without the picklist values. I have tried looking in Standard Value Set and Global Value Sets, however, they don't have the data either. Can anyone suggest any other way of doing this?
Best Answer chosen by Ian Frampton 9
Khan AnasKhan Anas (Salesforce Developers) 
Hi Ian,

Greetings to you!

Please refer to the below links which might help you further with the above issue.

https://salesforce.stackexchange.com/questions/163914/standard-picklist-fields-in-metadata-api-v39/163917

https://salesforce.stackexchange.com/questions/16408/deploying-standard-picklists-via-metadata-api

https://developer.salesforce.com/forums/?id=9060G0000005ZniQAE


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Ian,

Greetings to you!

Please refer to the below links which might help you further with the above issue.

https://salesforce.stackexchange.com/questions/163914/standard-picklist-fields-in-metadata-api-v39/163917

https://salesforce.stackexchange.com/questions/16408/deploying-standard-picklists-via-metadata-api

https://developer.salesforce.com/forums/?id=9060G0000005ZniQAE


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Raj VakatiRaj Vakati
Use this metadata in package.xml
 
<types>
       
        <members>QuantityUnitOfMeasure</members>
        
        <name>StandardValueSet</name>
    </types>