Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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".
Tagged:
0