How do I create a saved search via SuiteScript 2.0 with consolidated exchange rate set to none? It's easy to do via the Saved Search UI (on results tab), however, I can't find a way to do this via SuiteScript.
3 Answers
Use the NetSuite Saved Search Export Chrome Extension:
Since you already have the saved search, this is the easiest way to get the SuiteScript equivalent.

- 2,802
- 10
- 11
-
2While this is a very useful tool (thanks!), the generated code does not include a way to turn off consolidated exchange rates. – angrycrab Sep 22 '17 at 15:03
NetSuite finally included the settings attribute for search on SuiteScript 2.0
you just need to add this:
columns:[],
settings:[
search.createSetting({
name: "consolidationtype",
value: "NONE"
})
]
If you want, you can check the other settings available, at the API Reference Guide, section: search.createSetting(options)
https://docs.oracle.com/cloud/latest/netsuitecs_gs/NSAPI/NSAPI.pdf

- 41
- 5
Here's a solution I found in case any one else is looking: You can create a saved search via the UI with the Consolidated Exchange Rate set to none and leave columns and filters empty. Then, all you need to do is load that saved search via script and specify the columns and filters. If you don't care about changing the columns or filters via script, you could also define them in the UI.

- 830
- 1
- 9
- 23