---
schema_version: "1"
id: c42d29aa834a4c6ec513ef23844c4393624f760f3cbe5a49673a62cc68746d64
title: InventoryOperation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_inventoryoperation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_inventoryoperation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f429980ea5934699350d78f7b1e5b3a7a5d8b4ca6b3f1585f8bd7f00be0b8ef6
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

### DestinationLocationUserId

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

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

### SourceLocationUserId

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

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

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

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