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)
Receive an item into inventory.
Input Parameters
Name
Type
Description
warehouseId
ID
The Id of an SCM warehouse to put the received inventory.
itemId
ID
The Id of an SCM item master.
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 an SCM reason code.
conditionCodeId
ID
The Id of an SCM 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)
Receive an item into inventory.
Input Parameters
Name
Type
Description
warehouseId
ID
The Id of an SCM warehouse to put the received inventory.
itemId
ID
The Id of an SCM item master.
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 an SCM reason code.
conditionCodeId
ID
The Id of an SCM 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 SCM 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)
Receive an item into inventory.
Input Parameters
Name
Type
Description
warehouseId
ID
The Id of an SCM warehouse to put the received inventory.
itemId
ID
The Id of an SCM item master.
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 an SCM reason code.
conditionCodeId
ID
The Id of an SCM 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 SCM 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)
Receive an item into inventory.
Input Parameters
Name
Type
Description
warehouseId
ID
The Id of an SCM warehouse to put the received inventory.
itemId
ID
The Id of an SCM item master.
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 an SCM reason code.
conditionCodeId
ID
The Id of an SCM 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 SCM 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)
Put inventory positions in a specific inventory location. This will also complete associated put away action queue entries.
Input Parameters
Name
Type
Description
origPosns
scmc__Inventory_Position__c[]
A list of SCM inventory position records.
locn
String
The name of an SCM 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)
Put an inventory position in a specific inventory location. Inventory must be in the 'Receiving' location. This will also complete associated put away action queue entries.
Input Parameters
Name
Type
Description
origPosn
scmc__Inventory_Position__c
An SCM inventory position record.
locn
String
The name of an SCM 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.