Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Get error INVALID_FLD_VALUE","message":"You have entered an Invalid Field Value 6 for the following
Get INVALID_FLD_VALUE with following code doing an Inventory transfer with suitescrip in a suitelet.
I have verified that the Internal Id of 6 is a valid location.
var inventoryTransfer = record.create({
type: record.Type.INVENTORY_TRANSFER,
isDynamic: true });
// Set main fields
try{
inventoryTransfer.setValue({
fieldId: 'location',
value: requestBody.curLoc // Transfer from location
});
} catch(e){
log.debug("45", e);
}
inventoryTransfer.setValue({
fieldId: 'transferlocation',
value: requestBody.desLoc // Transfer to location
});
// Add inventory item
inventoryTransfer.selectNewLine({
sublistId: 'inventory'
});
try{
inventoryTransfer.setCurrentSublistValue({
sublistId: 'inventory',
fieldId: 'item',
value: requestBody.item // Item ID
});
} catch(e){
log.debug("61", e);
}
inventoryTransfer.setCurrentSublistValue({
sublistId: 'inventory',
fieldId: 'adjustqtyby',
value: requestBody.qty // Quantity to transfer