1

Got latest VSCode,latest Sf cli,latest npm ,latest Java 21

Intention is to get all objects (without using Org browser as it will be very time consuming) in manifest.xml to local VS Code project so tried SFDX: Retrieve Source in Manifest but got error with no exact details why SFDX failed to run enter image description here

Thought may be got a big manifest file around 9000 members to deploy at my VScode local project hence tried below sf commands

My end goal is to get allMetadata retrieval in my local project at VSCode...Then thought i would succeed in getting all metadata with below

sf project generate manifest --output-dir manifest --name=allMetadata --from-org vscodeOrg

sfdx force:source:retrieve -x manifest/package.xml -u vscodeOrg

but then error came is below

Error (SfError): INSUFFICIENT_ACCESS: insufficient access rights on entity: GenAiPromptTemplate

enter image description here How do i provide access to GenAiPromptTemplate so that i can run the below retrieval command successfully ?

sfdx force:source:retrieve -x manifest/package.xml -u vscodeOrg

GenAiPromptTemplate is not an object..I am using Salesforce Admin access with all these Permissions Are Enabled: Modify All Data,View All Data,API Enabled,Author Apex (for Apex metadata types)

2 Answers 2

1

You'll need to grant Prompt Template Manager permission to your user. Once done, you will see Prompt Builder in setup

sf org assign permset -n EinsteinGPTPromptTemplateManager

Sign up to request clarification or add additional context in comments.

1 Comment

This worked to precisely resolve the issue. I'm able to pull the latest config using project retrieve start after applying this permissionset.
0

Prompt Templates (this were probably the causing of the error) allowed me to execute and edit prompt templates.

1 Comment

How did you resolve? Clear simple steps would be nice.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.