Mark C
09/30/2020, 2:19 PMvar lineCount = fulfillmentRecord.getLineCount('item');
for (var i = 0; i < lineCount; i++) {
fulfillmentRecord.setSublistValue('item', 'location', i, 1);
What I need to do is get rid of the hardcode location of '1' in line 3
Would this work, if I put it above the loop?
var orderLocation = Record.getValue({
fieldId: 'location'
});
And set the sublist line as
fulfillmentRecord.setSublistValue('item', 'location', i, orderLocation);
I'm kind of stumped!Sandii
09/30/2020, 2:23 PMMark C
09/30/2020, 2:24 PMSandii
09/30/2020, 2:45 PMMark C
09/30/2020, 2:47 PMSandii
09/30/2020, 2:52 PMdarrenhillconsulting
09/30/2020, 2:53 PMbattk
09/30/2020, 2:54 PMdarrenhillconsulting
09/30/2020, 2:56 PMbattk
09/30/2020, 2:58 PMSandii
09/30/2020, 3:00 PMMark C
09/30/2020, 3:05 PMbattk
09/30/2020, 3:24 PMMark C
09/30/2020, 3:28 PMMark C
09/30/2020, 3:29 PMbattk
09/30/2020, 4:03 PMFulfill Based on Commitment
preference to Allow Uncommitted
allows you to set locations on fulfillment linesMark C
09/30/2020, 5:59 PMMark C
09/30/2020, 5:59 PM