← All types
Sales & CRMOb Object

CreateJobsFromOrderPayload

Result of createJobsFromOrder: the updated order and the jobs it produced.

Fields

The order after job creation. A draft or confirmed order is promoted to inProduction. Null when errors is non-empty.

jobs

[JobState!]Nullable

The created jobs, in input order. Lines with a product template are materialized by the vertical's template-instantiation service; jobs sharing a template are auto-grouped into a job group. Null on failure.

errors

[FieldError!]!Non-null

Field-level validation errors, paths such as jobs[0].orderLineId. Empty on success; when non-empty no jobs were created.

Referenced by (1)
Exact type SDL
"""
Result of `createJobsFromOrder`: the updated order and the jobs it produced.
"""
type CreateJobsFromOrderPayload {
  """
  The order after job creation. A `draft` or `confirmed` order is promoted to `inProduction`. Null when `errors` is non-empty.
  """
  order: OrderState
  """
  The created jobs, in input order. Lines with a product template are materialized by the vertical's template-instantiation service; jobs sharing a template are auto-grouped into a job group. Null on failure.
  """
  jobs: [JobState!]
  """
  Field-level validation errors, paths such as `jobs[0].orderLineId`. Empty on success; when non-empty no jobs were created.
  """
  errors: [FieldError!]!
}