Operations with Two Fields From List Items

Subtract, multiply, divide or add two fields from a list item and sum/multiply all the values.

Perform arithmetic operations (subtract, multiply, divide, or add) between two fields in each item of a list, and aggregate the results using a specified operation.


Overview

The Operations with Two Fields From List Items feature allows performing field-level arithmetic operations within list items and then aggregating the results across the list. This is useful for advanced calculations such as weighted sums or averages.


Inputs

NameIDDescription
ListlistThe input list of items.
First Field JSON PathfirstFieldPathThe JSON path pointing to the first field (e.g., minuend, numerator).
Second Field JSON PathsecondFieldPathThe JSON path pointing to the second field (e.g., subtrahend, denominator).
Fields OperationfieldsOperationThe operation to perform between fields: subtraction, multiplication, division, or addition.
Items OperationitemsOperationThe operation to aggregate results across items: multiplication or addition.

Outputs

NameIDDescription
SuccesssuccessBoolean indicating whether the operation was successful.
Result ValueresultThe aggregated result of the operation.

Notes

  • Ensure the JSON paths for both fields are valid for all objects in the input list.
  • Division by zero in field operations will result in errors.
  • Action ID for this operation: 566f4705-203e-4649-8ab5-df5ff2edcc26.