---
schema_version: "1"
id: 3391e88b13b0817f09e770496a107d3f319e6167f58b7b2366fb5bcb1d04d74b
title: AiJobRunItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_aijobrunitem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_aijobrunitem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ef0508f33c5e70f12296b548c78def0fa43d6f9fb046a9713792c0b3a59e3617
description: Stores an individual item associated with a parent AiJobRun, including the inputs and resulting response. This object is available in API version 63.0 and later.
---
# AiJobRunItem

Stores an individual item associated with a parent AiJobRun, including the inputs and resulting response. This object is available in API version 63.0 and later.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| AiJobRunId | 
Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

A required reference to the parent AiJobRun record that this item belongs to.

This field is a relationship field.

Relationship Name

AiJobRun

Refers To

AiJobRun



 |
| ErrorCode | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

If processing for this item fails, this field contains a numeric code indicating the error.



 |
| ErrorMessage | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Contains a detailed, human-readable message that explains the reason for the job run item failure.



 |
| Input | 

Type

textarea

Properties

Create, Update

Description

Contains the input data for a single item within the job run. For example, in a PromptTemplate job, this is the JSON input for the prompt template.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

A unique, system-generated identifier for the AiJobRunItem record.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The user or group that owns the AiJobRunItem record.

This field is a polymorphic relationship field.

Relationship Name

Owner

Refers To

Group, User



 |
| PreprocessedInput | 

Type

textarea

Properties

Create, Nillable, Update

Description

Stores an intermediate version of the input data after the preprocessing step. For example, this field could be a hydrated JSON prompt.



 |
| Response | 

Type

textarea

Properties

Create, Nillable, Update

Description

Contains the generated response for the job item after processing is complete.



 |
| Status | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

Tracks the status of the individual job item. Valid values are:

- Ready: The default value. The job run item is ready to start processing.
- Completed: Processing for the job run item is complete.
- Failed: Processing for the job run item failed.





 |