Using Multiple Operators in an Assignment Rule
Sometimes you may need to perform operations in assignment rules that use operators such as ‘Add’, ‘Subtract’, etc. (Note that ‘Add’ is both a mathematical operator – add the values of two fields together – and also a text concatenation operator – add one string to the end of another string.)
To perform these operations, you send the multiple operators in a single ‘operands’ array, as shown below where we are assigning the value from the ‘balance’ field in the acts_view to ‘test_number’, and then subtracting 525 from that value.
When run in TDO, the response message for a successful call will look very similar to other rules assignment messages. Both of the operators and their values will be reflected in the return message.
In TDO, after this call runs, you will see the rule assigned to the field.
Last updated
Was this helpful?