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
Save search Formula Issue
Hello Team,
I am facing an issue with formatting a date in the YYYYMMDD format within a saved search using the NVL function. I want to ensure that the date appears in the specified format, but I'm encountering errors whenever I run my formula. Can anyone assist me with this? Thank you!
My formula:
CASEWHEN {type} = 'Inventory Item' THENCASEWHEN {custitem36} = 'T' AND {locationquantityavailable} = 0 THEN '20491231'WHEN {custitem36} = 'T' AND {locationquantityavailable} > 0 THEN TO_CHAR(CURRENT_DATE, 'YYYYMMDD')WHEN {custitem36} = 'F' AND {locationquantityavailable} > 0 THEN TO_CHAR(CURRENT_DATE, 'YYYYMMDD')WHEN {custitem36} = 'F' AND {locationquantityavailable} = 0 THEN NVL(TO_CHAR({custitemnext_eta}, 'YYYYMMDD'), '20251231')