---
schema_version: "1"
id: f82c41ca3e92be462ff7d47afcac9d4cf11170a21e316dda9b0c8329ae9ed4b2
title: GRNItemProductionBatch
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/mfg_sforce_api_objects_grnitemproductionbatch.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/mfg_sforce_api_objects_grnitemproductionbatch.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: baff842557d955d4fa1bc0f6df94a92387383e58ee1fd9e79b03cc101139e76d
description: Represents production batch level details for a Goods Received Note (GRN) item, including quantities received, accepted, and damaged for a specific batch number. This object is available in API version 67.0 and later.
---
# GRNItemProductionBatch

Represents production batch level details for a Goods Received Note (GRN) item, including quantities received, accepted, and damaged for a specific batch number. This object is available in API version 67.0 and later.

## Supported Calls

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

## Fields

### AcceptedQuantity

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The quantity of the item accepted after inspection.

### BatchNumber

- **Type**: string
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The batch number of the associated production batch.

### Comments

- **Type**: textarea
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Additional notes or remarks related to this Goods Received Note item.

### DamagedQuantity

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**

### GoodsReceivedNoteItemId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The Goods Received Note Item associated with this production batch.
    
    This field is a relationship field.
- **Relationship Name**: GoodsReceivedNoteItem
- **Relationship Type**: Master-detail
- **Refers To**: GoodsReceivedNoteItem (the master object)

### LastSyncedInvReceivedQty

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The quantity received during the most recent inventory synchronization.

### ProductId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The product associated with this Goods Received Note item.
    
    This field is a relationship field.
- **Relationship Name**: Product
- **Refers To**: Product2

### ProductionBatchId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The production batch associated with this Goods Received Note Item.
    
    This field is a relationship field.
- **Relationship Name**: ProductionBatch
- **Refers To**: ProductionBatch

### PurchaseOrderItemNumberId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The specific item number from the related purchase order.
    
    This field is a relationship field.
- **Relationship Name**: PurchaseOrderItemNumber
- **Refers To**: PurchaseOrderItem

### ReceivedQuantity

- **Type**: double
- **Properties**: Create, Filter, Sort, Update
- **Description**: The actual quantity of the item received.

### StatusCode

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: The current status of the item within the Goods Received Note process.
- **Possible values**:
    - Approved
    - Cancelled
    - Closed
    - Draft
    - Inspected
    - Partially Received
    - Pending Inspection
    - Pending Receipt
    - Received
    - Rejected
    - Returned
    - Submitted

### UnitofMeasureId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The unit of measure used to quantify the item.
    
    This field is a relationship field.
- **Relationship Name**: UnitofMeasure
- **Refers To**: UnitOfMeasure

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

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