Orderly Helper icon

Orderly Helper

Build Orderly protobuf JSON objects for Orderly actions

Actions107

Delivery → Create Statistics Query

AI-generated

Summary

Builds a protobuf JSON StatisticsQuery for use with Orderly’s List Stats action. Set the account and any statistics filters; the node emits one query item for each incoming item.

Inputs

  • Account ID JSON — Whole AccountId object; defaults from the incoming item’s AccountId field, or {}.
  • Statistic Type IDs — Comma-separated StatisticId values. Each non-empty trimmed ID becomes an entry in Types.
  • From — Start value for the query’s From field.
  • Increment — Statistics interval: Unknown, Hourly, Daily, Weekly, Monthly, or Yearly. Defaults to Daily.
  • Additional Query JSON — JSON object of advanced query fields. The account and common fields configured above are applied afterward and take precedence for matching fields.

Output shape

A single n8n item per input item, with a protobuf JSON StatisticsQuery in json.

The query is normalized against the Orderly StatisticsQuery schema; unknown fields in Additional Query JSON are ignored. Invalid JSON or a non-object Additional Query JSON causes an item error, unless Continue On Fail is enabled, in which case the item contains an error field.

Links

Discussion