Orderly Helper icon

Orderly Helper

Build Orderly protobuf JSON objects for Orderly actions

Actions107

Statistics → Create Draft Order ID

AI-generated

Summary

Builds an Orderly protobuf DraftOrderId object from a required ID string and an optional AccountId object, returning it as JSON for use by downstream Orderly actions.

Inputs

  • ID (required) — UUID string for the draft order. The default expression checks the incoming item's Id.Value, Id, or id fields, in that order.
  • Account ID JSON — Whole AccountId object to include with the draft order ID. Defaults from the incoming item's AccountId field; leave empty to omit it.

Output shape

One n8n item per input item, with the built DraftOrderId JSON object in its json field.

The ID is trimmed and must be non-empty. An empty AccountId object is omitted. With Continue On Fail enabled, an item that errors is returned as { "error": "..." }; otherwise the node throws an item-scoped error.

Links

Discussion