Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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')