---
schema_version: "1"
id: dc495cc16b1423eb1d914e86ef1bfed29def0bb4199b5591afc0e97787f46546
title: ProductItemTransaction
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_productitemtransaction.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_productitemtransaction.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8b4e44eeb90a9d89d57fb54f799a64ff0f9f2cf99ec24716b36a4118a3f7718c
description: Represents an action taken on a product item in field service. Product item transactions are auto-generated records that help you track when a product item is replenished, consumed, or adjusted.
---
# ProductItemTransaction

Represents an action taken on a product item in field service. Product item transactions are auto-generated records that help you track when a product item is replenished, consumed, or adjusted.

## Supported Calls

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

## Special Access Rules

- Field Service must be enabled.
- Only users with Modify All Data or Modify All Records permissions can delete this object.

## Fields

| Field Name | Details |
| --- | --- |
| Description | 
Type

textarea

Properties

Create, Nillable, Update

Description

A description of the transaction. The description is blank when the transaction record is created, but can be updated.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last interacted with this record, directly or indirectly.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, it's possible that the user only accessed this record or list view (LastReferencedDate), but not viewed it.



 |
| ProductItemId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The associated product item.

This is a relationship field.

Relationship Name

ProductItem

Relationship Type

Lookup

Refers To

ProductItem



 |
| ProductItemTransactionNumber | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

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



 |
| Quantity | 

Type

double

Properties

Create, Filter, Sort

Description

The quantity of the product item involved in the transaction. If inventory was consumed, the quantity is negative.



 |
| RelatedRecordId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

(Read Only) The product consumed or product transfer related to the action. If the action wasn’t related to consumption or transfer, the related record is blank.

This is a polymorphic relationship field.

Relationship Name

RelatedRecord

Relationship Type

Lookup

Refers To

ProductTransfer, Visit



 |
| TransactionType | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort

Description

The action that the transaction tracks.

- Replenished: When a part is stocked at a location. A Replenished transaction is created when a product item is created.
- Consumed: When parts are consumed to complete a work order. A Consumed transaction is created when a record is added to the Products Consumed related list on a work order or work order line item.
- Adjusted: When there’s a discrepancy or a change in consumption. An Adjusted transaction is created when a product item’s Quantity on Hand is edited, a product consumed is updated or delete, or a product transfer is deleted.
- Transferred: When parts are transferred between locations.





 |

## Associated Objects

This object has these associated objects. Unless noted, they’re available in the same API version as this object.

[ProductItemTransactionChangeEvent](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.")

Change events are available for the object.

[ProductItemTransactionFeed](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.

[ProductItemTransactionHistory](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.