Mark C
10/31/2022, 8:38 PM// In the client script, I get these values from the originating record
var description = rec.getValue('custrecord_br_itdv_item');
var basePrice = rec.getValue('custrecord_br_itdv_item_base_price');
// I can set the body fields using the N/url Module
var newItemURL = urlModule.resolveRecord({
recordType: recordModule.Type.INVENTORY_ITEM,
isEditMode: true,
params: {
'record.displayname':description
}
});
// BasePrice is located in a sublist on the item record though.
// In a different Script (Suitelet that serves a different purpose) I set base price via:
newItemRecord.setSublistValue({sublistId: 'price1', fieldId: 'price_1_', line: 0, value: basePrice});
battk
10/31/2022, 8:42 PMMark C
10/31/2022, 8:50 PMbattk
10/31/2022, 8:53 PMMark C
10/31/2022, 8:54 PM