1

Why error

Error Case_Record_Page Quick_Summary isn’t a valid value for Generative Prompt Template.

happens for the deployment of Case Record page?

Listing on the corresponding Case Record page snippet

<flexiPageRegions> <itemInstances> <fieldInstance> <fieldInstanceProperties> <name>generativePromptTemplate</name> <value>Quick_Summary</value> </fieldInstanceProperties> <fieldInstanceProperties> <name>uiBehavior</name> <value>none</value> </fieldInstanceProperties> <fieldItem>Record.Quick_Summary__c</fieldItem> <identifier>RecordQuick_Summary_cField</identifier> </fieldInstance> </itemInstances> <itemInstances> 

1 Answer 1

1

This means the particular Generative Prompt Template is not moved and not available in the target org.

To retrieve it or them from the source org, use the following sf command:

sf project retrieve start -o source-org -m GenAiPromptTemplate

This is the example file snippet genAiPromptTemplates/Quick_Summary.genAiPromptTemplate-meta.xml

<?xml version="1.0" encoding="UTF-8"?> <GenAiPromptTemplate xmlns="http://soap.sforce.com/2006/04/metadata"> <activeVersion>1</activeVersion> <description>A short summary of case details</description> <developerName>Quick_Summary</developerName> <masterLabel>Quick Summary</masterLabel> <relatedEntity>Case</relatedEntity> <relatedField>Case.Quick_Summary__c</relatedField> <templateVersions> <content>Summarize the concatenation of the contents of the comment bodies of {!$RelatedList:Case.CaseComments.Records} along with the text from {!$Input:Case.Subject}, the case priority which is {!$Input:Case.Priority}, and the case type which is {!$Input:Case.Type}. Keep the response to a single short paragraph. </content> <inputs> <apiName>RelatedEntity</apiName> <definition>SOBJECT://Case</definition> <referenceName>Input:Case</referenceName> <required>true</required> </inputs> <primaryModel>sfdc_ai__DefaultOpenAIGPT4</primaryModel> <status>Published</status> <templateDataProviders> <definition>invocable://getRelatedList</definition> <parameters> <definition>primitive://String</definition> <isRequired>true</isRequired> <parameterName>parentRecordId</parameterName> <valueExpression>{!$Input:Case.Id}</valueExpression> </parameters> <parameters> <definition>primitive://String</definition> <isRequired>true</isRequired> <parameterName>relatedListName</parameterName> <valueExpression>CaseComments</valueExpression> </parameters> <referenceName>RelatedList:Case.CaseComments.Records</referenceName> </templateDataProviders> <versionNumber>1</versionNumber> </templateVersions> <type>einstein_gpt__fieldCompletion</type> <visibility>Global</visibility> </GenAiPromptTemplate> 

When you deploy, you must deploy Settings enablement in one Deployment and then the templates in a separate deployment, otherwise an error

Not available for deploy for this organization 

will be shown to you

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.