---
schema_version: "1"
id: f6ea0ab1514742998c2afcd9943bff6308cef5e2ab71ff4643bb538981e2ae1e
title: cgcloud__Unit_of_Measure__c
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_cgcloud__unit_of_measure__c.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_cgcloud__unit_of_measure__c.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 071ed0dc7a6021591efbb45f4fd9d7a893084e15538189fc48ffc7a3cad3912d
description: Stores the details of the units of measure (logistic unit) of a product. This object is available in API version 54.0 and later.
---
# cgcloud\_\_Unit\_of\_Measure\_\_c

Stores the details of the units of measure (logistic unit) of a product. This object is available in API version 54.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Unique identification of the record.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the record owner.
    
    This is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**: Group, User

### cgcloud\_\_Check\_isConsumer\_Unique\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Used internally for validation.

### cgcloud\_\_Check\_isOrder\_Unique\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Used internally for validation.

### cgcloud\_\_Check\_isPrice\_Unique\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Used internally for validation.

### cgcloud\_\_GTIN\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Global trade item number.

### cgcloud\_\_Is\_Consumer\_Unit\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the item is a consumer unit.
- **Default value**: false

### cgcloud\_\_Is\_Order\_Unit\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the item is a default order unit.
- **Default value**: false

### cgcloud\_\_Is\_Price\_Unit\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the item is a price unit.
- **Default value**: false

### cgcloud\_\_Order\_Ability\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the unit of measure can be ordered.
- **Default value**: false

### cgcloud\_\_Pieces\_per\_Smallest\_Unit\_\_c

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Number of pieces of the smallest unit that this unit contains.

### cgcloud\_\_Pieces\_per\_parent\_unit\_\_c

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Number of pieces of this unit of measure that the parent unit of measure contains.

### cgcloud\_\_Product\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to product.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Product\_\_r
- **Relationship Type**: Lookup
- **Refers To**: Product2

### cgcloud\_\_Record\_Link\_\_c

- **Type**: string
- **Properties**: Filter, Nillable, Sort
- **Description**: Link to the unit of measure record.
    
    This is a calculated field.
- **Formula**:
    
    HYPERLINK("/" &Id, /\*IMAGE("/img/func\_icons/util/lookup20.gif", "View")\*/"View", "\_top")

### cgcloud\_\_Rounding\_Rule\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Defines the rounding rule to be applied for the target unit of measure.
- **Default value**: Never
- **Possible values**:
    - Down
    - Nearest
    - Never
    - Up
    - UserExit

### cgcloud\_\_Rounding\_Target\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Controls whether the unit of measure is to be considered for rounding quantities.
- **Default value**: false

### cgcloud\_\_Sort\_Validation\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Used internally for validation.

### cgcloud\_\_Sort\_\_c

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Sequence of unit of measures of a product (from the smallest unit to the largest unit).

### cgcloud\_\_Unit\_Type\_Validation\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Used internally for validation.

### cgcloud\_\_Unit\_Type\_\_c

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
- **Description**: Type of the unit of measure.
- **Default value**: SalesUnit
- **Possible values**:
    - ConsumerUnit
    - Layer
    - Pallet
    - SalesUnit

### cgcloud\_\_Volume\_\_c

- **Type**: double
- **Properties**: Create, Defaulted on create, Filter, Nillable, Sort, Update
- **Description**: Item volume used for complex pricing.

### cgcloud\_\_Weight\_\_c

- **Type**: double
- **Properties**: Create, Defaulted on create, Filter, Nillable, Sort, Update
- **Description**: Item weight used for complex pricing.

## Associated Objects

### Associated Objects

This object has these associated objects. If the API version isn’t specified, they are available in the same API versions as this object. Otherwise, they are available in the specified API version and later.

- **[cgcloud\_\_Unit\_of\_Measure\_\_cChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")**: Change events are available for the object.
- **[cgcloud\_\_Unit\_of\_Measure\_\_cFeed](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")**: Feed tracking is available for the object.
- **[cgcloud\_\_Unit\_of\_Measure\_\_cHistory](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")**: History is available for the tracked fields of the object.
- **[cgcloud\_\_Unit\_of\_Measure\_\_cOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")**: Sharing rules are available for the object.
- **[cgcloud\_\_Unit\_of\_Measure\_\_cShare](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")**: Sharing is available for the object.