Populate Suitelet Sublist from a Saved Search with Formulas in the Search
问题 @bknights posted an good answer to another question around populating a sublist in a suitelet. However, my question follows on from that when using bk's code: function getJoinedName(col) { var join = col.getJoin(); return join ? col.getName() + '__' + join : col.getName(); } searchResults[0].getAllColumns().forEach(function(col) { sublist.addField(getJoinedName(col), 'text', col.getLabel()); nlapiLogExecution('DEBUG', 'Column Label', col.getLabel()); }); var resolvedJoins = searchResults.map