This tutorial will guide you through the creation of steps in your process that allow for calculations.
You can also use our step templates to create the required steps
Step 1: Create the calculation step
Create an integration step and configure it by clicking on the gear icon in the step
choose method POST and URL
https://integrations.nextmatter.com/g/utils/calculate
Headers:
Key | Value |
Content-Type | application/json |
Body:
{ "formula": "insert your formula here"}
Within the formula you can reference input fields of previous steps by using data references. This gives you an easy way to have variables in your formula that take on the values of user input during process execution.
You can use the calculation result in later steps by configuring the Response data for use in later steps option:
Name | Value |
result | $.result |
The name can be whichever you prefer. You can use the result in subsequent steps by using a data reference.
Support operations:
Operation | Description | Example |
+ | add | 1+1 = 2 |
- | substract | 4-2 = 2 |
/ | divide | 4/2 = 2 |
* | multiply | 2*2 = 4 |
** | to the power of | 3**2 = 9 |
% | remainder | 5%2 = 1 |
== | equals | 2==2 = true |
< | less | 1<2 = true |
> | greater | 1<2 = false |
<= | less than | 2<=2 = true |
>= | greater than | 1>=2 = false |
in | text contained in other text | "Next" in "Next Matter" = true |