One type of transaction in NetSuite is "Currency Revaluation" and there are examples of such transactions (e.g. see those with InternalIDs 3335, 3346 and 3347 in the NetSuite testdrive sample data, Honeycomb Mfg). I would like to know how to retrieve these transactions using the SuiteTalk web service API. I can get other types of transaction very easily, for example using the following Java code (simplified for clarity):
TransactionSearchBasic srch = new TransactionSearchBasic();
srch.setRecordType(new SearchStringField(RecordType._invoice, SearchStringFieldOperator.is));
SearchResult res = stub.search(srch);
if (res.getStatus().isIsSuccess()) {
for (Record rec : res.getRecordList().getRecord()) {
Invoice inv = (Invoice) rec;
// ... do things with inv ...
}
}
Now the problem is that, while there are many different transaction record types in SuiteTalk, such as the above (RecordType.invoice and class Invoice), there doesn't seem to be a record type for currency revaluations defined in the web service. How do you search for these?
fxreval
? – Rockstarvar rec = nlapiLoadRecord('fxreval',3335);
working pretty fine in debuger for me. You can see the xml response representing the record also, its showing<record recordType="fxreval" id="3335" perm="4"
– Rockstar