tuli
06/26/2020, 12:26 PMNElliott
06/26/2020, 12:55 PMAntonio Jr
06/26/2020, 1:11 PMtuli
06/26/2020, 1:16 PMIf you're transforming the record, you shouldn't see the message until you save the record so check the lines before you save.
tuli
06/26/2020, 1:16 PMtuli
06/26/2020, 1:16 PMtuli
06/26/2020, 1:17 PMtuli
06/26/2020, 1:18 PMtuli
06/26/2020, 1:19 PMNElliott
06/26/2020, 1:21 PMbattk
06/26/2020, 1:22 PMtuli
06/26/2020, 1:23 PMtuli
06/26/2020, 1:23 PMbattk
06/26/2020, 1:23 PMbattk
06/26/2020, 1:24 PMtuli
06/26/2020, 1:24 PMAntonio Jr
06/26/2020, 1:25 PMtuli
06/26/2020, 1:29 PMvar x = nlapiGetOldRecord();
var y = nlapiGetLineItemCount("item");
var flag1 = true,
if ((x.getLineItemCount("item") == y)) {
for (var z = 1; z <= y; z++) {
flag1 = flag1 && (x.getLineItemValue("item", toConsider, z) == nlapiGetLineItemValue("item", toConsider, z));
}
}
if ((x.getLineItemCount("item") == y) && flag1) {
nlapiLogExecution("Debug", "Script Status", "Won't Run");
} else {
//Script code here}
Once i did something like this to check before transform when doing SO to RA toConsider is "quantityfulfilled"tuli
06/26/2020, 1:30 PM