How to Use the Perform Math Operations Action in HappyFox Workflows

By Harinarayanan V 2 views

This article explains how to use the Perform Math Operations action in HappyFox Workflows to calculate numeric values at runtime and pass the result to subsequent actions in the same workflow.

Applicable Plans: Available on all plans.


What it does

The Perform Math Operations action performs a single arithmetic operation — addition, subtraction, multiplication, or division — across two or more numeric values. Each value can be a static number or a dynamic value pulled from a merge field. The action outputs a single Result variable that is available to all subsequent actions in the workflow.

Available operations

Note: For Subtract and Divide, the order of values determines the result. The first value you add is the base, and each subsequent value is subtracted from or divides into the running total.


How to use it

  1. Open the workflow you want to edit in HappyFox Workflows.
  2. Click + Add Action at the point in the workflow where you want to perform the calculation.
  3. Under In-built workflows actions, select Perform Math Operations.
  4. In the Operation dropdown, select the operation you want to perform: Add, Subtract, Multiply, or Divide.
  5. In the Values section, enter the first number in the Enter number field. To use a dynamic value from the workflow, click + Insert Merge Fields and select the field.
  6. Enter the second number in the next Enter number field. Use + Insert Merge Fields if needed.

Note:

  1. Optionally, click + next to Values to add more value slots. Repeat for each additional number.
  2. Click Save & Test to validate the action against a test ticket, or click Save to save without testing.

The Perform Math Operations configuration panel, showing the Operation dropdown set to Add and two Enter number fields populated.

Note: If any value slot is populated with a merge field that resolves to a non-numeric value at runtime — for example, a text field or an empty field — the action will fail. Use Run History to identify which value caused the failure and verify that the source field contains a number before the workflow runs.


Using the result in subsequent actions

After the action runs, the calculated value is available as a merge field variable named Result. To reference it in a later action, click + Insert Merge Fields in that action's configuration and select Result from the Perform Math Operations step.


Next Steps

Your Perform Math Operations action is now configured and its output is available as a variable in subsequent workflow steps. Next, learn how to  use the Transform Text action to format or modify text values before passing them to other actions.