Skip to main content

Decrease Internal Datasource Value

The Decrease Internal Datasource Value action is used to decrement a numeric value stored in an Internal Datasource.

This action only works on top-level keys and object properties.

You cannot delete a specific value inside an array.

When to Use

Use this action when you need to reduce a number stored in an Internal Datasource by exactly 1. It’s typically used for:

  • Countdown functionality
  • Reversing a counter (e.g., remaining capacity)
  • Undoing or rolling back user interactions

Requirements

The Editable From Display setting must be enabled on the Internal Datasource.

Learn more: Alternative Datasource Settings

Action Behavior

  • Always decreases the value by 1
  • You cannot specify a custom decrement value
  • You can optionally set a Minimum Value
    • If the current value is equal to or lower than this limit, it will not decrease further

Configuration Options

FieldDescription
DatasourceThe Internal Datasource containing the target value. You must point directly to the numeric field.
Min Value(Optional) Lower boundary — once reached, the value stops decreasing

Example Use Case

If your Internal Datasource looks like this:

{
"counter": 5,
"valueWrapper": {
"value": 5
}
}

Executing this action on the counter path and on valueWrapper.value will decrement both values:

{
"counter": 4,
"valueWrapper": {
"value": 4
}
}

If a Min Value of 4 is set and either field is already at 4, that value will not be reduced further.

Usage in Action Batches

As with any action, this can be used inside an Execute Action Batch with Evaluations to control its execution logic.