In a Saved Search or N/SQL, how differentiate the ...
# general
e
In a Saved Search or N/SQL, how differentiate the
unrealized
vs the
realized
fxreval
transactions? The XML representation of the record has
variancetype
= Realized.
m
By the gl account used I think or by variance type
e
Variance type is not exposed, or at least I didnt find it. Will dig into the account.
m
Copy code
var fxrevalSearchObj = search.create({
   type: "fxreval",
   settings:[{"name":"consolidationtype","value":"ACCTTYPE"},{"name":"includeperiodendtransactions","value":"F"}],
   filters:
   [
      ["type","anyof","FxReval"], 
      "AND", 
      ["appliedtotransaction","anyof","@NONE@"], 
      "AND", 
      ["mainline","is","F"]
   ],
   columns:
   [
      search.createColumn({name: "transactionname", label: "Transaction Name"})
   ]
});
If applied to transaction not empty = CR Realized if empty = CR Unrealized
e
Thanks @Marc