When creating a scripted search in 2.0, can filter...
# suitescript
d
When creating a scripted search in 2.0, can filter expressions contain formulas?
n
Theres a chrome extension called "Netsuite Saved Search Code Export" If you can build the search in UI, you can get the code for free that uses that search
Very useful tool for generating these quickly, so if in the UI you use the formula, could probably produce the code
d
Thanks @Nbtwist!
n
You have to save the search before it gives the code just a warning
👍 1
Once its saved, just hit edit again then export as script in the top right
d
@Nbtwist Never would have expected this. Totally undocumented, but the format for formulas via an expression rather than a search.createfilter --- ["formulanumeric: CASE WHEN {x} in ('y') THEN 1 ELSE 0 END","equalto","1"]
n
This is why the plugin is amazing 🙂
saved me a ton of development t ime
m
The creator is a member here.
d
yeah, it's David Smith (@dcrsmith)
m
Not totally undocumented
Just be very careful if you use string concatenation when creating the formula that can break Rhino
d
👍
There is a beta version of the workbook export too. This will output the SuiteQL if you want to use a query.