Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Strange result with CASE statement
OK, it's been a lon day already but this should be a no brainer. I have a customer who wants to send a report to her dealers BUT if the location quantity available is more than 100 to just display 100+. Easy right?
I created a formula field (Text) and used the following:
CASE WHEN {locationquantityavailable} >100 THEN '100+' ELSE {locationquantityavailable} END
I get ERROR: Invalid Expression. To make sure I get the syntax correct I changed it to (just to test):
CASE WHEN {locationquantityavailable} >100 THEN '100+' ELSE 'Less than 100' END
Now I do not get the Invalid Expression and the results are correct. So I really Need to get the {locationquantityavailable} to work.
John Cirocco
Sr. NetSuite Administrator