erictgrubaugh
10/20/2020, 9:54 PMmySearch.run()
.getRange(...)
.forEach(function (result) {
var itemId = result[i].getValue({ name: 'custrecord255' });
rec.selectNewLine({ sublistId: 'item'})
.setCurrentSublistValue({
sublistId: 'item',
fieldId: 'item',
value: itemId,
forceSyncSourcing: true
})
.commitLine({"sublistId": "item"});
});
pen one
10/21/2020, 3:11 AMCannot read property 'getValue' of undefined
error or if I change the function name to results I get a Cannot read property '1' of undefined
error. Not sure what I am missing.erictgrubaugh
10/21/2020, 3:41 AM[i]
anymore because there is no i
and result
is no longer an array