Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
how to get the 'exchangerate' in system
//var filters = new Array();
//filters[0] = new nlobjSearchFilter( 'trandate', null, 'onOrAfter', 'daysAgo90' );
var columns = new Array();
columns[0] = new nlobjSearchColumn( 'exchangerate' );
var searchresults = nlapiSearchRecord( 'currency', null, null, columns);
for(var i=0;i<searchresults.length;i++)
{
var record = nlapiLoadRecord(searchresults[i].getRecordType(),searchresults[i].getId());
var test1=record.getFieldValue('exchangerate');
alert(test1+'\n\r'+'');
}
how to get the 'exchangerate' attribute???