You need to sign in to do that
Don't have an account?
No such column 'QuantityUnitOfMeasure' on entity 'Product2'
I'm trying to read Unit of Measure on Product2. But getting compile time error as below.
But in Product entity field seems there.

Not sure if I am using a wrong field name. In docs I couldn't find this field though. Can someone help me with reading unit of measure in product using SOQL?
Appreciate any help. Thanks.
No such column 'QuantityUnitOfMeasure' on entity 'Product2'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
But in Product entity field seems there.
Not sure if I am using a wrong field name. In docs I couldn't find this field though. Can someone help me with reading unit of measure in product using SOQL?
Appreciate any help. Thanks.
All Answers
Its an native fied and API name is : QuantityUnitOfMeasure
I think issue must be that you do not have read Access on the field. Go to the Field and see if you have access on field.
Try to run a query in developer console and see if results come to verify it immediately as you check the field Access. I have checked and query works fine.
Select Id, QuantityUnitOfMeasure From Product2 Limit 1
Thanks