Netsuite 保存搜索公式的问题

Issue with Netsuite saved search formula

我一直收到无效的表达式。有谁知道为什么?

这是我的查询:

case when {systemnotes.field}is 'Discontinued' then {systemnotes.date} else '' end

您需要将关键字 IS 替换为相等运算符 = 以测试 {systemnotes.field}'Discontinued' 之间的相等性。还要检查公式类型以确保它与返回的数据类型相匹配。

我认为你需要使用 CASE WHEN {systemnotes.filed} LIKE 'discontinued' THEN {systemnotes.date} ' ' END