I want to get NetSuite URL of a record using saved search in java suite talk
This is a java script code of Transaction Search, I have to convert it into Suite talk using java. I am able to get internalid, account, entity etc but i am not able to get link for each record. How can i get the link?
util.each(searchResults, function (row) {
var obj = {
id: row.internalid,
linkText: row.account,
link: commons.resolveRecordUrl('invoice', row.internalid),
text: ' | ' + row.entity + ' | ' + self.formatMoney(row.amount) + ' | ' + row.trandate
};
// log.debug({ title: "obj", details: obj });
results.push(obj);
});