Phillip
03/17/2021, 4:14 PMcreece
03/17/2021, 4:16 PMvar resultRange = searchResult.getRange({ start:0,end: 1000
}).forEach(function(result){
//var itemid = result.id;
var itemid = result.getValue({name: 'internalid'}); // Assuming 'internalid' is search column otherwise result.id should work IFF result is an Item search result.
var soid= record.load({
type: record.Type.INVOICE,
id: itemid,
isDynamic: false
}); (edited)
Sandii
03/17/2021, 4:16 PMSandii
03/17/2021, 4:18 PMitemid
and then loading an invoice (that is called soid
?). I would recommend not using really confusing names like that.Watz
03/17/2021, 4:26 PMSandii
03/17/2021, 4:27 PMWatz
03/17/2021, 4:30 PMPhillip
03/17/2021, 4:44 PMmichoel
03/17/2021, 10:10 PMPhillip
03/17/2021, 10:21 PMmichoel
03/17/2021, 10:48 PM