---
schema_version: "1"
id: b6fa2070480b00b810a638efa69fc2380603a0f7a09b06f6e14715590edb3093
title: Prompt Builder Limitations
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_limitations.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_limitations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 80a1608103fec4d98928bb7a489a9915ba8437fa52a843f57e0aed47f8a3351e
description: Learn about the functional limitations of prompt templates that affect certain behaviors and outcomes.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Prompt Builder Limitations

Learn about the functional limitations of prompt templates that affect certain behaviors and outcomes.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations</td></tr></tbody></table>

## Audit Trail Isn’t Supported

Creating or updating a prompt template isn’t tracked in the Setup Audit Trail.

## New Custom Objects and Custom Fields Aren’t Immediately Available After Creation

When you create a custom object or custom field, it isn’t available for use in Prompt Builder immediately. To use a new custom object or field immediately, log out and log back in.

## Records Without a Name Don’t Display in the Record Selector

Prompt templates with encrypted or missing name fields can’t be previewed. Their records are unavailable in the test record selector.

## Supported Object Types

Salesforce supports many object or field suffixes to represent different types of data. Prompt Builder supports only these types of objects and fields as resources.

- UI API-supported objects. For a full list, see [All Supported Objects](https://developer.salesforce.com/docs/atlas.en-us.248.0.uiapi.meta/uiapi/ui_api_all_supported_objects.htm).
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)
    
    Important The KnowledgeArticleVersion object is supported only for Flex Template types.
- Standard objects (no suffix)
- Standard fields (no suffix)
- Custom objects (`__c`)
- Custom fields (`__c`)
- Histories (`__history`)
- Related lists (`__r`)

## Object Preview Limitations

You can’t preview objects with no Name field or objects whose Name field is encrypted.

## Limitations for Field Generation Templates

You can’t use Field Generation prompt templates for rich text areas in knowledge entities (`__kav`). To populate a knowledge entity’s rich text area with a Prompt Builder template, use a Flex prompt template, Flow, or Apex.

## Limitations for Flex Templates

You can’t import or export metadata from flex templates, including metadata related to flex templates. For example:

- Apex classes that reference flex templates
- Flows that reference flex templates
- Change sets to move flex-related artifacts between orgs

To delete flex templates that use flows or Apex classes, first remove any flows and Apex resources in all versions of the template. Second, delete any flows and Apex classes that reference the prompt template. Then delete the flex template.

## Limitations for Einstein Search

If a prompt uses an Einstein Search retriever, the change sets don’t include the retriever or search index metadata. You must manually create the retriever in the destination org before deploying the retriever. This rule applies to change sets and Metadata API deployments.

## Limitations for Conditional Logic

Conditional blocks evaluate a single related record. They don’t iterate over a collection, such as multiple files related to a case.

To reference more than one file, use Flow or Apex to select the file before the prompt template runs, or concatenate file names or a file count into a text field and ground the prompt template on that field.

#### See Also

- [Ground Prompt Templates with Salesforce Resources](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_ground_template.htm&release=264.0.0&type=5 "With Prompt Builder, you can dynamically ground prompt templates with CRM data using merge fields.")
- [Monitor Setup Changes with Setup Audit Trail](https://help.salesforce.com/s/articleView?id=xcloud.admin_monitorsetup.htm&type=5&language=en_US)
- [Prompt Builder Limits](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_limits.htm&release=264.0.0&type=5 "Learn the numerical limits of prompt templates.")
- [Troubleshoot Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_troubleshoot.htm&release=264.0.0&type=5 "Solve common prompt template issues.")