We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey

Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
We’re ringing the bell so you know what that means… LAST CALL! This is your last week to register for #SuiteWorld at our early bird special rate and save $300. Join us for our biggest event of the year and learn more about how your business can get the most out of our system. https://lnkd.in/enaAr8p8
Release 2022.2 is Coming! – Get Ready with your Release Preview Account
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.

The exception throw in the suitescript 2.0 for creating a saved search of kit package.

Hello NetSuite Guru team,


I wrote a script as below but it threw the error "org.mozilla.javascript.EcmaError: TypeError: Cannot find function toLowerCase in object CASE WHEN {memberitem.locationquantityonhand} >0 THEN 'in stock' ELSE 'out of stock' END. (N/search/searchObject.js#1989)"

Could you please review the screenshots I attach below and let me know what is wrong with this?

/**

 * @NApiVersion 2.x

 */

require(['N/search','N/file'], function(search,file) {

   //kititem

var columns = [

search.createColumn({ name: 'internalid', label: 'SKU', summary: 'GROUP' }),

search.createColumn({

name: 'formulatext',

formula: [

"CASE WHEN {memberitem.locationquantityonhand} >0 THEN 'in stock' ELSE 'out of stock' END"

],

summary: 'MAX',

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

This Week's Leaders

This Month's Leaders

All Time Leaders