Is it possible to multiply by -1 in a CRM Dynamics 2016 Workflow?

时间:2016-07-11 21:46:19

标签: dynamics-crm dynamics-crm-2016

I'm trying to create a workflow that would make the target field value a negative number. I want to create related records as credits and debits and then be able to sum them up to get a net value.

I've tried to update the field to -1 and then multiply it accordingly, but I get an error stating that the value needs to be between 0 and 1,000,000,000,000. I've also just tried to multiply the value by a -1, but that doesn't work either. It just runs the workflow, but doesn't change the value.

3 个答案:

答案 0 :(得分:1)

基于@MarioZG的评论,您的CRM字段看起来不允许使用负数。

设置数字字段(十进制;货币;浮动或整数)时,您可以指定可接受值的范围。这是Whole Number的属性的快速屏幕截图:

Number Properties

答案 1 :(得分:0)

我实际上想出了这个。我创建了两个不同的工作流程来在一个具有不同"类型"的实体中创建记录。然后,在帐户上我有一个汇总字段来汇总一种类型,然后汇总类型来汇总另一种类型。然后我用一个计算字段从另一个中减去一个。

答案 2 :(得分:0)

使用字段的数据类型作为十进制数字(查看您的使用情况),在这种情况下,您可以灵活地存储所有类型的数字。