global scmc__Inventory_Position__c miscellaneousReceipt(ID warehouseId, ID itemId, Double quantity, String lotNumber, String serialNumber, DateTime expirationDate, ID reasonId, ID conditionCodeId, Boolean inspectionRequired, Double value)
Receives an item into inventory. You must use the Miscellaneous_Receipt_API custom permission to grant permissions on this method. Calls to this method from a batch process will prevent the backorder batch process (BackorderBatch) from running automatically. This is due to a validation that stops batch job chains of the backorder process. You can run the backorder process manually from the Backorders tab.
Input Parameters
Name
Type
Description
warehouseId
ID
The ID of a warehouse to put the received inventory.
itemId
ID
The ID of an item.
quantity
Double
The number of items to receive.
lotNumber
String
The lot number of the item to receive. Only applicable if the item is lot controlled. All items must have the same lot number.
serialNumber
String
The serial number of the item to receive. Only applicable if the item is serial number controlled. Quantity should be 1 if this is used.
expirationDate
DateTime
The shelf life expiration of the item. Only applicable if the item is shelf life controlled. Expressed as a DateTime.
reasonId
ID
The ID of a reason code.
conditionCodeId
ID
The ID of a condition code.
inspectionRequired
Boolean
Indicates if the item needs to be inspected after receipt.
value
Double
The current value of a single unit of the received item.
Exceptions Thrown
Value
Description
InventoryPositionException
If there is a validation issue or an error receiving the inventory.
SCMException
If there is a serial number related issue.
Return Value
Inventory_Position__c The created inventory record.
global scmc__Inventory_Position__c miscellaneousReceipt(ID warehouseId, ID itemId, Double quantity, String lotNumber, String serialNumber, DateTime expirationDate, ID reasonId, ID conditionCodeId, Boolean inspectionRequired, Double value, ID ownerId)
Receives an item into inventory. You must use the Miscellaneous_Receipt_API custom permission to grant permissions on this method. Calls to this method from a batch process will prevent the backorder batch process (BackorderBatch) from running automatically. This is due to a validation that stops batch job chains of the backorder process. You can run the backorder process manually from the Backorders tab.
Input Parameters
Name
Type
Description
warehouseId
ID
The ID of a warehouse to put the received inventory.
itemId
ID
The ID of an item.
quantity
Double
The number of items to receive.
lotNumber
String
The lot number of the item to receive. Only applicable if the item is lot controlled. All items must have the same lot number.
serialNumber
String
The serial number of the item to receive. Only applicable if the item is serial number controlled. Quantity should be 1 if this is used.
expirationDate
DateTime
The shelf life expiration of the item. Only applicable if the item is shelf life controlled. Expressed as a DateTime.
reasonId
ID
The ID of a reason code.
conditionCodeId
ID
The ID of a condition code.
inspectionRequired
Boolean
Indicates if the item needs to be inspected after receipt.
value
Double
The current value of a single unit of the received item.
ownerId
ID
The ID of a Salesforce user who will own the new inventory record.
Exceptions Thrown
Value
Description
InventoryPositionException
If there is a validation issue or an error receiving the inventory.
SCMException
If there is a serial number related issue.
Return Value
Inventory_Position__c The created inventory record.
global scmc__Inventory_Position__c miscellaneousReceipt(ID warehouseId, ID itemId, Double quantity, String lotNumber, String serialNumber, DateTime expirationDate, ID reasonId, ID conditionCodeId, Boolean inspectionRequired, Double value, ID ownerId, ID ownership)
Receives an item into inventory. You must use the Miscellaneous_Receipt_API custom permission to grant permissions on this method. Calls to this method from a batch process will prevent the backorder batch process (BackorderBatch) from running automatically. This is due to a validation that stops batch job chains of the backorder process. You can run the backorder process manually from the Backorders tab.
Input Parameters
Name
Type
Description
warehouseId
ID
The ID of a warehouse to put the received inventory.
itemId
ID
The ID of an item.
quantity
Double
The number of items to receive.
lotNumber
String
The lot number of the item to receive. Only applicable if the item is lot controlled. All items must have the same lot number.
serialNumber
String
The serial number of the item to receive. Only applicable if the item is serial number controlled. Quantity should be 1 if this is used.
expirationDate
DateTime
The shelf life expiration of the item. Only applicable if the item is shelf life controlled. Expressed as a DateTime.
reasonId
ID
The ID of a reason code.
conditionCodeId
ID
The ID a condition code.
inspectionRequired
Boolean
Indicates if the item needs to be inspected after receipt.
value
Double
The current value of a single unit of the received item.
ownerId
ID
The ID of a Salesforce user who will own the new inventory record.
ownership
ID
The ID of an ownership code who will own the new inventory.
Exceptions Thrown
Value
Description
InventoryPositionException
If there is a validation issue or an error receiving the inventory.
SCMException
If there is a serial number related issue.
Return Value
Inventory_Position__c The created inventory record.
global scmc__Inventory_Position__c miscellaneousReceipt(ID warehouseId, ID itemId, Double quantity, String lotNumber, String serialNumber, DateTime expirationDate, ID reasonId, ID conditionCodeId, Boolean inspectionRequired, Double value, ID ownerId, ID ownership, String comments)
Receives an item into inventory. You must use the Miscellaneous_Receipt_API custom permission to grant permissions on this method. Calls to this method from a batch process will prevent the backorder batch process (BackorderBatch) from running automatically. This is due to a validation that stops batch job chains of the backorder process. You can run the backorder process manually from the Backorders tab.
Input Parameters
Name
Type
Description
warehouseId
ID
The ID of a warehouse to put the received inventory.
itemId
ID
The ID of an item.
quantity
Double
The number of items to receive.
lotNumber
String
The lot number of the item to receive. Only applicable if the item is lot controlled. All items must have the same lot number.
serialNumber
String
The serial number of the item to receive. Only applicable if the item is serial number controlled. Quantity should be 1 if this is used.
expirationDate
DateTime
The shelf life expiration of the item. Only applicable if the item is shelf life controlled. Expressed as a DateTime.
reasonId
ID
The ID of a reason code.
conditionCodeId
ID
The ID of a condition code.
inspectionRequired
Boolean
Indicates if the item needs to be inspected after receipt.
value
Double
The current value of a single unit of the received item.
ownerId
ID
The ID of a Salesforce user who will own the new inventory record.
ownership
ID
The ID of an ownership code who will own the new inventory.
comments
String
Comments added to the resulting perpetual inventory tranaction record.
Exceptions Thrown
Value
Description
InventoryPositionException
If there is a validation issue or an error receiving the inventory.
SCMException
If there is a serial number related issue.
Return Value
Inventory_Position__c The created inventory record.
global scmc__Inventory_Position__c miscellaneousReceipt(ID warehouseId, ID itemId, Double quantity, String lotNumber, set<String> serialNumbers, DateTime expirationDate, ID reasonId, ID conditionCodeId, Boolean inspectionRequired, Double value, ID ownerId, ID ownership, String comments)
Receives an item into inventory. You must use the Miscellaneous_Receipt_API custom permission to grant permissions on this method. Calls to this method from a batch process will prevent the backorder batch process (BackorderBatch) from running automatically. This is due to a validation that stops batch job chains of the backorder process. You can run the backorder process manually from the Backorders tab.
Input Parameters
Name
Type
Description
warehouseId
ID
The ID of a warehouse to put the received inventory.
itemId
ID
The ID of an item.
quantity
Double
The number of items to receive.
lotNumber
String
The lot number of the item to receive. Only applicable if the item is lot controlled. All items must have the same lot number.
serialNumbers
set<String>
A set of Strings representing the serial numbers of the items to receive. Only applicable if the item is serial number controlled. This allows for more than one quantity to be received.
expirationDate
DateTime
The shelf life expiration of the item. Only applicable if the item is shelf life controlled. Expressed as a DateTime.
reasonId
ID
The ID of a reason code.
conditionCodeId
ID
The ID of a condition code.
inspectionRequired
Boolean
Indicates if the item needs to be inspected after receipt.
value
Double
The current value of a single unit of the received item.
ownerId
ID
The ID of a Salesforce user who will own the new inventory record.
ownership
ID
The ID of an ownership code who will own the new inventory.
comments
String
Comments added to the resulting perpetual inventory tranaction record.
Exceptions Thrown
Value
Description
InventoryPositionException
If there is a validation issue or an error receiving the inventory.
SCMException
If there is a serial number related issue.
Return Value
Inventory_Position__c The created inventory record.
global void locate(scmc__Inventory_Position__c[] origPosns, String locn)
Puts away inventory positions into a specific inventory location. This will also complete associated put away action queue entries. You must use the Locate_API custom permission to grant permissions on this method.
Input Parameters
Name
Type
Description
origPosns
scmc__Inventory_Position__c[]
A list of inventory position records.
locn
String
The name of an inventory location. All specified inventory positions will be put in the same location. Location must be in the inventory's current warehouse.
Exceptions Thrown
Value
Description
InventoryPositionException
If there is an error completing the locate transaction.
global void locate(scmc__Inventory_Position__c origPosn, String locn)
Puts away inventory positions into a specific inventory location. This will also complete associated put away action queue entries. You must use the Locate_API custom permission to grant permissions on this method.
Input Parameters
Name
Type
Description
origPosn
scmc__Inventory_Position__c
An inventory position record.
locn
String
The name of an inventory location. Location must be in the inventory's current warehouse.
Exceptions Thrown
Value
Description
InventoryPositionException
If there is an error completing the locate transaction.
global void issueKit(scmc__Item__c item, Double quantity)
Completes a miscellaneous issue action for all items in the bill of material of a specified item. You must use the Issue_Kit_API custom permission to grant permissions on this method.
Input Parameters
Name
Type
Description
item
scmc__Item__c
An item record.
quantity
Double
How many of the kit item to issue. This will be multiplied by the quantity per assembly of each of the BOM items.
Exceptions Thrown
Value
Description
KitIssueException
If the BOM is not found for the specified item.
InventoryPositionException
If there is an error completing the issue transaction.
global void massTransfer(Id picklistId, Id toLocation, Id reasonCodeId, String comments)
Transfers an inventory position from an existing picklist to a warehouse. You must use the Mass_Transfer_API custom permission to grant permissions on this method.
Input Parameters
Name
Type
Description
picklistId
Id
The ID of a picklist.
toLocation
Id
The ID of an inventory location.
reasonCodeId
Id
The ID of a reason code.
comments
String
Comments added to the resulting perpetual inventory tranaction record.
global void move(Map<ID, Double> ipIdToMoveQuantity, Id toLocation, Id reasonCodeId, String comments)
Moves inventory positions to a specific inventory location. The current location of the inventory cannot be Receiving or Receiving Inspection. You must use the Move_API custom permission to grant permissions on this method.
Input Parameters
Name
Type
Description
ipIdToMoveQuantity
Map<ID, Double>
A map with an inventory position as the key and a quantity to move as the value.
toLocation
Id
The ID of an inventory location. This must be in the same warehouse as the existing inventory.
reasonCodeId
Id
The ID of a reason code.
comments
String
Comments added to the resulting perpetual inventory tranaction record.
Class to hold purchase order receipt line information.
Properties
Name
Type
Description
poLineId
Id
The ID of the purchase order line.
qtyReceiving
decimal
The quantity to receive. This parameter is required when the purchase order line is received by quantity.
amountReceiving
decimal
The amount to receive. This parameter is required when the purchase order line is received by amount.
lotNumber
String
The lot number of the item to receive. This parameter is required when the item on the purchase order line is lot controlled.
serialNumbers
String[]
A list of strings representing the serial numbers to receive. This parameter is required when the item on the purchase order line is serial number controlled.