Alan Fitch
05/29/2022, 10:18 PMvar existingIaid = scriptContext.newRecord.getValue('custbody_erp_bp_byproductadjust');
if (bomentries.length == 0) {
record.delete({
type: 'inventoryadjustment',
id: existingIaid
})
log.debug('deleted', existingIaid)
return
}
When it the conditions are satisfied it gives me:
Items you have requested in the record have been deleted since you retrieved the form
It deletes the ia fine and then instead of returning it gives me this error.battk
05/29/2022, 10:22 PMAlan Fitch
05/29/2022, 10:23 PMbattk
05/29/2022, 11:22 PM