AiJobRun

Represents an execution instance of an AI job. This object tracks the overall status and manages the lifecycle of the job from initiation to completion.

Introduced in API version 64.0.

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The time when the job run ends.
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: If the job run fails, this field indicates the specific error that occurred.
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Contains a detailed, human-readable message that explains the reason for the job run failure.
  • Type: picklist
  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
  • Description: Defines the job’s logic.
  • Possible values:
    • PromptTemplate — PromptTemplate
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: A user-defined name or label for the job run, which can be used for identification and tracking.
  • Type: string
  • Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
  • Description: A unique, system-generated identifier for the AiJobRun record.
  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: The time when the job run’s status changes to InProgress.
  • Type: picklist
  • Properties: Create, Filter, Group, Restricted picklist, Sort, Update
  • Description: Tracks the lifecycle of the job run.
  • Possible values:
    • New — New
    • ReadyToStart — ReadyToStart
    • Queued — Queued
    • InProgress — InProgress
    • Completed — Completed
    • Failed — Failed
    • Aborted — Aborted
    • Archived — Archived
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: A metadata field used to specify job-specific details, such as a PromptTemplateId, PromptTemplateName, or ModelId. This provides further context for the job execution.