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
Saved Search: Result Formula for Case When under Case When
Hi all,
I wanted to display a formula result where a Case When is under a Case When, may i know is this something doable?
Tried below code but it is not working:
CASE WHEN (CASE WHEN {custrecord_deprhistdate} = {custrecord_deprhistasset.custrecord_assetpurchasedate} THEN {custrecord_deprhistasset.custrecord_assetcost} ELSE 0 END) IS 0 THEN {custrecord_deprhistbookvalue} ELSE 0 END
Actually i wanted to based on another formula field in the saved search, which is:
CASE WHEN {custrecord_deprhistdate} = {custrecord_deprhistasset.custrecord_assetpurchasedate} THEN {custrecord_deprhistasset.custrecord_assetcost} ELSE 0 END
And set this new formula field value to {custrecord_deprhistbookvalue} if the result from above formula field is 0.