Orderly Helper icon

Orderly Helper

Build Orderly protobuf JSON objects for Orderly actions

Actions107

Delivery → Create Draft Order ID

AI-generated

Summary

Builds a protobuf JSON DraftOrderId from an ID and an optional AccountId object, for use as input to other Orderly operations.

Inputs

  • ID (required) — The draft order UUID string. The field is required; the default expression checks Id.Value, Id, then id on the incoming item.
  • Account ID JSON — The whole AccountId object to include. Defaults to the incoming item's AccountId or {}; provide the object itself when mapping a previous node's AccountId output.

Output shape

One output item per input item, each containing a single DraftOrderId JSON object.

The builder trims the ID and errors if it is empty. It converts the result to Orderly protobuf JSON; an empty Account ID object is omitted. With Continue On Fail enabled, a failed item instead contains an error message.

Examples

Example 1: Input fields

Supply the draft order UUID in ID and, if needed, the complete AccountId object in Account ID JSON.

Example 2: Result

Returns an object with Id: { Value: "…" } and includes AccountId when a non-empty object was supplied.

Links

Discussion