Jacob D
01/17/2024, 12:19 AMdefine(['N/search', 'N/log'], function parentMatrixPriceSync(nSearch, nLog) {
function execute() {
nSearch
.load({
id: 'customsearch_parentpricingsync',
})
.run()
.each(function eachSearchResult(result) {
var itemName = result.getValue({ name: 'itemid' });
nLog.audit('name', itemName);
nLog.audit('result', result);
});
}
return {
execute: execute,
};
});
ericbirdsall
01/17/2024, 12:23 AMreturn true
to the bottom of your .each functionericbirdsall
01/17/2024, 12:23 AMdefine(['N/search', 'N/log'], function parentMatrixPriceSync(nSearch, nLog) {
function execute() {
nSearch
.load({
id: 'customsearch_parentpricingsync',
})
.run()
.each(function eachSearchResult(result) {
var itemName = result.getValue({ name: 'itemid' });
nLog.audit('name', itemName);
nLog.audit('result', result);
return true; // HERE
});
}
return {
execute: execute,
};
});
Jacob D
01/17/2024, 12:25 AM