Actions107
- Account Actions
- Container Actions
- Delivery Actions
- Notification Actions
- Order Actions
- Statistics Actions
- Voucher Actions
- WebHook Actions
Delivery → Create Draft Order ID
AI-generatedSummary
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, thenidon the incoming item. - Account ID JSON — The whole AccountId object to include. Defaults to the incoming item's
AccountIdor{}; 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
errormessage.
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.