Orderly Helper icon

Orderly Helper

Build Orderly protobuf JSON objects for Orderly actions

Actions107

Container → Create Statistics Query

AI-generated

Summary

Builds a protobuf JSON StatisticsQuery for use with Orderly’s List Stats action. The builder starts with Additional Query JSON, then applies the account, statistic type IDs, From date, and increment fields before converting the result to the Orderly schema.

Inputs

  • Account ID JSON — Whole AccountId object; defaults from the incoming item’s AccountId property. Leave empty to omit it.
  • Statistic Type IDs — Comma-separated StatisticId values. Each trimmed, non-empty value becomes an entry in the query’s Types array.
  • From — Date/time value assigned to the query’s From field when provided.
  • Increment — Statistic aggregation interval: Unknown, Hourly, Daily, Weekly, Monthly, or Yearly. Defaults to Daily.
  • Additional Query JSON — JSON object supplying advanced query fields. The listed fields are applied afterward, overriding matching keys. Defaults to {}.

Output shape

One item per input item, containing a StatisticsQuery JSON object.

The result is normalized through the Orderly protobuf schema, which omits implicit default values and ignores unknown fields. Invalid JSON objects or incompatible values can cause an error; with Continue On Fail enabled, that input item instead returns an error field.

Links

Discussion