AiJobRunStatusEvent

Notifies subscribers when an AiJobRun object changes status to InProgress, Completed, or Failed. This object is available in API version 65.0 and later.

Supported Calls

create(), describeSObjects()

Special Access Rules

This object is available to users with access to the AiJobRun and AiJobRunItem standard objects.

Fields

Field Details
AiJobRunIdentifier
Type
string
Properties
Create
Description
The ID of the AiJobRun associated with this event.
EventUuid
Type
string
Properties
Nillable
Description
A universally unique identifier (UUID) that identifies a platform event message.
JobType
Type
picklist
Properties
Create, Restricted picklist
Description
The method used to create the job run.
Possible values are:
  • GeneratePromptAsyncIA (Flow)
  • PromptTemplate (Apex)
ReplayId
Type
string
Properties
Nillable
Description
Represents an ID value that is populated by the system and refers to the position of the event in the event stream. Replay ID values aren’t guaranteed to be contiguous for consecutive events. A subscriber can store a replay ID value and use it on resubscription to retrieve missed events that are within the retention window.
Status
Type
picklist
Properties
Create, Restricted picklist
Description
The AiJobRunStatus that the job run changed to.
Possible values are:
  • InProgress
  • Completed
  • Failed
Target
Type
string
Properties
Create, Nillable
Description
Represents the Target field in AiJobRun. A metadata field used to specify job-specific details, such as a PromptTemplateId, PromptTemplateName, or ModelId.