【问题标题】:NetSuite Saved Search formula to filter for Opps remaining at a stage for over 60 daysNetSuite Saved Search 公式用于过滤在某个阶段停留超过 60 天的 Opps
【发布时间】:2019-02-23 02:06:05
【问题描述】:

需要保存的搜索,以显示超过 60 天未更改销售阶段的停滞的 Opps。我是 Netsuite 销售管理员(以前是 Salesforce 管理员)的新手..并且无法弄清楚计算阶段变化后天数的公式。

公式(日期)

--- 我知道我需要使用系统注释来确定设置阶段的时间,然后计算 60 天但卡住了。

【问题讨论】:

    标签: sql netsuite


    【解决方案1】:

    想对上述内容发表评论,但还没有足够的代表。 NetSuite 公式不允许换行。 case when {entitystatus} = {systemnotes.newvalue} and {today} - to_date({systemnotes.date}) > 60 then 1 else 0 end 应该可以工作。

    【讨论】:

    • 谢谢——那应该是公式(日期)格式还是我应该使用不同的格式(文本或数字)?
    • 我会使用数字,因为您似乎正在通过“then”和“else”语句评估 1 或 0。如果您的结果需要采用日期格式,您只会使用日期。
    【解决方案2】:

    您可以使用此公式。您需要按机会和状态对结果进行分组,并至少采用{today} - to_date({systemnotes.date}),因为每个机会都会获得多个系统注释匹配项。

    case 
      when {entitystatus} = {systemnotes.newvalue} and {today} - to_date({systemnotes.date}) > 60 then 1 
      else 0 
    end
    

    等于 1

    【讨论】:

    • 谢谢您-但这对我不起作用。它返回一条消息说我有语法错误:您的公式中有错误。它可能会解析为错误的数据类型、使用未知函数或存在语法错误。请返回,更正公式,然后重新提交。搜索:机会搜索公式:CASE 当 {entitystatus} = {systemnotes.newvalue} 和 {today} - to_date({systemnotes.date}) > 60 then 1 else 0 end
    • 字段类型需要为公式(数值)。除此之外,此搜索在我的帐户中有效。这是带有配置的screenshot
    • 太棒了!谢谢你——它奏效了。甚至我们的顾问也想不通。我很感激你!
    猜你喜欢
    • 1970-01-01
    • 2022-12-28
    • 2017-03-28
    • 1970-01-01
    • 2017-10-04
    • 1970-01-01
    • 2016-03-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多