Andrew Cohen
03/17/2022, 5:08 PMInvalid data format. You should return text.
I've looked at the inventory items that were supposed to be pushed to that database last night, and at a glance they look identical to all the other items that have successfully gone through. Any ideas?
function getGTIN()
{
var gtin_records = [];
var searchresults = nlapiSearchRecord('inventoryitem', 'customsearch_cofe_getgtin');
// return search results
for ( var i = 0; searchresults != null && i < searchresults.length; i++ )
{
var currentresult = new Object();
currentresult.nsid = searchresults[i].getValue(nlobjSearchColumn('internalid', null, null));
currentresult.gtin = searchresults[i].getValue(nlobjSearchColumn('upccode', null, null));
currentresult.description = searchresults[i].getValue(nlobjSearchColumn('name', null, null));
gtin_records.push(currentresult);
}
var results = new Object();
results.records = gtin_records;
return results;
}
battk
03/17/2022, 5:50 PMbattk
03/17/2022, 5:52 PMAndrew Cohen
03/17/2022, 5:59 PMcustomsearch_cofe_getgtin
battk
03/17/2022, 6:00 PMbattk
03/17/2022, 6:00 PMbattk
03/17/2022, 6:00 PMAndrew Cohen
03/17/2022, 6:03 PMbattk
03/17/2022, 6:04 PMbattk
03/17/2022, 6:04 PMbattk
03/17/2022, 6:04 PMAndrew Cohen
03/17/2022, 6:06 PMbattk
03/17/2022, 6:08 PMAndrew Cohen
03/17/2022, 8:31 PMAndrew Cohen
03/17/2022, 8:31 PMbattk
03/17/2022, 11:23 PMbattk
03/17/2022, 11:23 PMbattk
03/17/2022, 11:24 PMAndrew Cohen
03/17/2022, 11:25 PM