Calculations

Create steps in your workflow that allow calculations.

🚧

Check out our ready-made templates available when you add a step and select Templates > Next Matter templates. You can use the templates to create a set of pre-configured steps.

  1. Create an integration step.
  2. Click Settings and enter the following configurations:
  • Method: POST
  • URL: https://integrations.nextmatter.com/g/utils/calculate
  • Headers: 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.

  • If you want to use the calculation result in later steps add the result variable in the Response data for use in later steps. The variable's value should be $.result

Supported operations


+add1+1 = 2
-subtract4-2 = 2
/divide4/2 = 2
*multiply2*2=4
**exponents (to the power of)3**2 = 9
%remainder (amount left over)5%2 = 1
==equals2==2 = true
<less1<2 = true
>greater1<2 = false
<=less than2<=2 = true
>=greater than1>=2 = false