---
schema_version: "1"
id: 8c531ce7daabdcff525fb465ce7889e9b6984b33a9aaa5f84f2e8c7caf70dab3
title: InventoryOperation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/sforce_api_objects_inventory_operation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/sforce_api_objects_inventory_operation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5608ac7017862ebaab7cd2690717640de875348f3223ddad8b3f4557a76cbd9d
description: Represents operations performed on the inventory, such as transfers, disbursements, or adjustments. This object is available in API version 65.0 and later.
---
# InventoryOperation

Represents operations performed on the inventory, such as transfers, disbursements, or adjustments. This object is available in API version 65.0 and later.

## Supported Calls

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

## Fields

### AdditionalInformation

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: Stores additional information about the inventory operation.

### Comment

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: The comments for the inventory operation.

### DestinationAddressId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The address at which the products are delivered.
    
    This field is a relationship field.
- **Relationship Name**: DestinationAddress
- **Refers To**: Address

### DestinationLocationId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the destination location associated with the inventory operation.
    
    This field is a relationship field.
- **Relationship Name**: DestinationLocation
- **Refers To**: Location

### IsDuplicate

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the inventory operation is a duplicate (true) or not (false).
- **Default value**: false

### IsException

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the inventory operation has any exception (true) or not (false).
- **Default value**: false

### IsSystemCreated

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the inventory operation is created by the system (true) or not (false).
- **Default value**: false

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last viewed this record or list view.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: The name of the inventory operation record.

### OperationType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Specifies the type of inventory operation.
- **Possible values**:
    - Adjustment
    - Disbursement
    - Return
    - Transfer
    - TransferIn—Transfer In
    - TransferOut—Transfer Out

### OpportunityId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The opportunity associated with the inventory operation.
    
    This field is a relationship field.
- **Relationship Name**: Opportunity
- **Refers To**: Opportunity

### OwnerId

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

### ProductRequestId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the product request associated with the inventory operation.
    
    This field is a relationship field.
- **Relationship Name**: ProductRequest
- **Refers To**: ProductRequest

### RelatedOperationId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the related operation associated with the inventory operation.
    
    This field is a relationship field.
- **Relationship Name**: RelatedOperation
- **Refers To**: InventoryOperation

### ShipmentStatus

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Specifies the status indicating the condition of the shipment.

### SourceLocationId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the source location associated with the inventory operation.
    
    This field is a relationship field.
- **Relationship Name**: SourceLocation
- **Refers To**: Location

### VisitId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The ID of the visit associated with the inventory operation.
    
    This field is a relationship field.
- **Relationship Name**: Visit
- **Refers To**: Visit

## 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.

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

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

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

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

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