James Liddy
05/10/2021, 12:20 AMDonkeyBot
05/10/2021, 11:38 AMElisa R
05/10/2021, 2:45 PMNetsuite Tragic
05/11/2021, 8:39 AMRookie
05/13/2021, 9:39 AMPaweł Kubera
05/17/2021, 2:46 PMMark C
05/17/2021, 3:35 PMChris
05/17/2021, 9:18 PMmattb
05/19/2021, 1:41 AMmicah
05/19/2021, 10:05 PMAdam K
05/20/2021, 3:28 AMLRG
05/20/2021, 9:51 AMLRG
05/20/2021, 9:55 AMPSR
05/21/2021, 7:52 AMAlex K
05/21/2021, 2:24 PMRookie
05/24/2021, 11:44 AMRookie
05/25/2021, 8:40 AM// Get the value of the Reject reason
var rejReason = scriptContext.newRecord.getValue({
fieldId: 'custrecord165' // Change this according to the internal id of the Field Reject Reason in the Custom Record Created
});
// Get the ID of the Vendor Bill Reject reason
var venbillID = scriptContext.newRecord.getValue({
fieldId: 'custrecord166' // Change this according to the internal id of the Field Vendor Bill in the Custom Record Created
});
// populate the Reject Reason in the Vendor Bill Rejection Reason field
var id = record.submitFields({
type: record.Type.VENDOR_BILL,
id: venbillID,
values: {
custrecord165: rejReason // Change custbody1 to the internal id of the custom field Reject Reason in the Vendor bill Record
},
options: {
enableSourcing: false,
ignoreMandatoryFields : true
}
});
}
return {
beforeLoad: beforeLoad,
beforeSubmit: beforeSubmit,
afterSubmit: afterSubmit
};
});LRG
05/25/2021, 12:50 PMRookie
05/25/2021, 1:00 PMpmendola
05/27/2021, 8:40 PMJustin Hughes
06/02/2021, 3:53 PMSuite Deal
06/03/2021, 12:45 PMParameswaran
06/08/2021, 5:08 AMmofo
06/09/2021, 8:32 AMAI1
06/09/2021, 12:28 PMjen
06/11/2021, 4:36 PMjen
06/11/2021, 8:30 PMjen
06/11/2021, 8:31 PMjen
06/11/2021, 8:40 PMKevinJ of Kansas
06/11/2021, 8:55 PM