---
schema_version: "1"
id: 0d1514cf5249ca563eeef7ecaf6a456a0d6fe65c07a8af811a55c2ca7dfd0f7b
title: TenantScrAIPrmptInjection
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_tenantscraiprmptinjection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_tenantscraiprmptinjection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c32c76d5d85ce7f21ee1670329c2a1b2d52d4f2c78c2e6eda46e06965445582c
description: Stores generative AI prompt injection data. This object is available in API version 65.0 and later.
---
# TenantScrAIPrmptInjection

Stores generative AI prompt injection data. This object is available in API version 65.0 and later.

## Supported Calls

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

This object is available for Security Center subscribers. This object is read-only.

## Fields

| Field | Details |
| --- | --- |
| DetailIdentifier | 
Type

string

Properties

Filter, Group, idLookup, Sort

Description

The ID of the individual detail record. This field is unique across all tenants.



 |
| InputSource | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The origin of this prompt.



 |
| Language | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Language of the prompt.



 |
| MaskedPrompt | 

Type

textarea

Properties

Nillable

Description

Masked prompt or input text.



 |
| MaskedResponse | 

Type

textarea

Properties

Nillable

Description

The generated response from the LLM. If masking is enabled, this may contain placeholder text.



 |
| MetricIdentifier | 

Type

string

Properties

Filter, Group, Sort

Description

The ID of the type of metric that was counted. This field is unique within your organization.



 |
| MetricsType | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The type of data collected.



 |
| Name | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

The name of the metric for which data is being collected.



 |
| PlannerLlm | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The LLM being used by the Planner.



 |
| Prompt | 

Type

textarea

Properties

Nillable

Description

The hydrated version of prompt text before data masking is applied. The actual prompt sent to the LLM will mask sensitive data if data masking is enabled.



 |
| PromptTimestamp | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Timestamp when this prompt injection happened.



 |
| PromptTokens | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The number of tokens used in the prompt.



 |
| Response | 

Type

textarea

Properties

Nillable

Description

The generated response after unmasking.



 |
| Tenant | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

The ID of the tenant with this triggered Transaction Security Policy event.



 |
| TenantName | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The name of the tenant where this triggered Transaction Security Policy happened.



 |