max on field

This block is part of the array group and was last modified in core v10.4.28.

Field Selection Required

This block relies on a field that you select to perform its data actions. You must manually select the field you want to use in your flow using the field selector modal. To access the modal, click the white button on the block.

max on field v10.4.28

Returns the highest number for the given field in the given array of objects.

In pins 1
  • Array required
    array

    The array of objects to find the maximum value within.

Out pins 1
  • Number
    number

    The highest number for the given field.

Returns the highest numeric value of the selected field (dot path) across the object items. Non-object items, items missing the field, and non-numeric values are skipped; numeric strings coerce. Outputs 0 when no field is selected, the selected field type is not number or date, or no item yields a usable value - indistinguishable from a real maximum of 0.

highest

A typical wiring for max on field: search feeds the array pin; the number out pin feeds cast to value.

Studio canvas example for the max on field block: typical wiring for max on field.

Commonly used with

In production blueprints, this block is most often wired together with:

  • search: feeds into this block. searches in the given storage based on a query.
  • execute: this block feeds into it. Executes the given funcion and waits for it to be executed.
  • return: this block feeds into it. Returns the added custom pins as data-pins on the function execute.

Version history

Introduced in v10.4.28.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group