---
schema_version: "1"
id: 29689bd51e9758bfc924b27b12c3c698868b92dc70af5a28dd2df93bf8c4712a
title: ProductItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_productitem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_productitem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c868be40e5570b893f2f5e801eb275c60d627600f833553b08b9a9cf813b30af
description: Represents the stock of a particular product at a particular location in field service, such as all bolts stored in your main warehouse.
---
# ProductItem

Represents the stock of a particular product at a particular location in field service, such as all bolts stored in your main warehouse.

## Supported Calls

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

## Special Access Rules

Field Service must be enabled.

## Fields

| Field Name | Details |
| --- | --- |
| LastReferencedDate | 
Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date when the product item was last modified. Its label in the user interface is Last Modified Date.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date when the product item was last viewed.



 |
| LocationId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

Location associated with the product item. This usually indicates where the product item is stored.

This is a relationship field.

Relationship Name

Location

Relationship Type

Lookup

Refers To

Location



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The product item’s owner.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |
| Product2Id | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

Product associated with the product item, which represents the type of product in your inventory.

This is a relationship field.

Relationship Name

Product2

Relationship Type

Lookup

Refers To

Product2



 |
| ProductItemNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

(Read Only) Auto-generated number identifying the product item.



 |
| ProductName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

A name for the product item. Try to select a name that indicates what is being stored where; for example, Batteries in Warehouse A.



 |
| QuantityOnHand | 

Type

double

Properties

Create, Filter, Sort, Update

Description

The quantity at the location. If you want to add a serial number, this value must be 1.



 |
| QuantityUnitOfMeasure | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Units of the product item; for example, kilograms or liters. Quantity Unit of Measure picklist values are inherited from the Quantity Unit of Measure field on products.



 |
| SerialNumber | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A unique number for identification purposes. If you want to enter a serial number, the Quantity on Hand must be 1.



 |

## Usage

Each product item is associated with a product and a location in Salesforce. If a product is stored at multiple locations, the product will be tracked in a different product item for each location.

## Associated Objects

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

[ProductItemChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/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.") (API version 48.0)

Change events are available for the object.

[ProductItemFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/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.

[ProductItemHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/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 tracked fields of the object.

[ProductItemOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/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.

[ProductItemShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/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.