Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Help with CASE expression in formula field
In a custom %formula field of a custom search, I keep getting "invalid expression" error when I include the statement {amount}*.02 in this expression below:
CASE WHEN {item.custitem_custid} IN (05,12) THEN {amount}*{item.custitem_sharedat50} WHEN {item.custitem_custid} IN (37,42,76) THEN {amount}*.02 ELSE {amount}*{item.custitem_sharedat33} END. If I replace {amount}*.02 with {amount}*{item.custitem_margin} it works without error. Anybody have any idea as to what is wrong with this expression?
Solved with a workaround:
I created a custom item field with an .02 value and replaced .02 with {item.custitem_02margin} and I got it to work. Still do not know why I could not multiply by ".02".