Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个计算字段来确定日期字段和另一个硬编码日期之间的持续时间,如下所示:DIFFINDAYS(test_datefield, "19-Dec-16"),但它不起作用。
DIFFINDAYS(test_datefield, "19-Dec-16")
CRM 2015 或 2016 有可能吗?
您不能直接使用计算字段执行此操作。可以通过一个间接层:
如果您向实体添加新字段以包含硬编码日期,则可以使用业务规则来设置该字段的值(如果 HardcodedDate 不包含数据,则将 HardcodedDate 设置为 19-Dec-16)。
随后,这两个字段可以在您的计算字段中使用:DIFFINDAYS(test_datefield, test_hardcodeddate).
DIFFINDAYS(test_datefield, test_hardcodeddate)