salesforceapex-codesalesforce-lightninglwcsalesforce-einstein

How to get allMetadata retrieval using SF VSCode.. insufficient access rights on entity: GenAiPromptTemplate


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)


Solution

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